/* =========================================================
   Stile Login — Palette Sito Medaid.it (Paper / Teal / Serif)
   ========================================================= */

.medaid-login-outer {
    min-height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.5rem;
    box-sizing: border-box;
    background: #f6f5f1;
}

.medaid-login-container {
    width: 100%;
    max-width: 460px;
}

/* ---------- Logo ---------- */
.medaid-login-logo {
    text-align: center;
    margin-bottom: 2rem;
}

.medaid-login-logo a {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: #1a2530;
    font-family: 'Source Serif 4', Georgia, 'Times New Roman', serif;
    font-size: 1.6rem;
    font-weight: 500;
    letter-spacing: -0.02em;
    line-height: 1;
}

.medaid-login-logo-icon {
    color: #3a6a6a;
    flex-shrink: 0;
}

.medaid-login-logo-brand {
    white-space: nowrap;
}

.medaid-login-logo-img {
    max-width: 220px;
    width: 100%;
    height: auto;
}

/* ---------- Card ---------- */
.medaid-login-main {
    background: #ffffff;
    border: 1px solid #e3e6e0;
    border-radius: 14px;
    padding: 2.5rem;
    box-shadow: 0 8px 24px -8px rgba(26, 37, 48, 0.12);
}

/* ---------- Form ---------- */
.medaid-login-form {
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

.medaid-login-kicker {
    display: block;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.72rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #3a6a6a;
    margin-bottom: 0.5rem;
}

.medaid-login-title {
    font-family: 'Source Serif 4', Georgia, 'Times New Roman', serif;
    font-size: clamp(1.6rem, 4vw, 2.1rem);
    font-weight: 500;
    line-height: 1.15;
    letter-spacing: -0.025em;
    color: #1a2530;
    margin: 0 0 0.4rem;
}

.medaid-login-lede {
    font-size: 1rem;
    line-height: 1.6;
    color: #6b7680;
    margin: 0 0 1.5rem;
}

/* ---------- Alerts ---------- */
.medaid-alert {
    padding: 0.85rem 1rem;
    border-radius: 10px;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1.25rem;
}

.medaid-alert--error {
    background: #fcecea;
    color: #b54a3c;
    border: 1px solid #f0c8c2;
}

.medaid-alert--success {
    background: #eaf3ec;
    color: #4a8a5a;
    border: 1px solid #cde0d2;
}

/* ---------- Fields ---------- */
.medaid-form-group {
    margin-bottom: 1.1rem;
}

.medaid-form-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: #1a2530;
    margin-bottom: 0.4rem;
}

.medaid-form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    font-family: inherit;
    color: #1a2530;
    background: #ffffff;
    border: 1.5px solid #e3e6e0;
    border-radius: 10px;
    outline: none;
    box-sizing: border-box;
    transition: border-color 200ms cubic-bezier(0.4, 0, 0.2, 1), box-shadow 200ms cubic-bezier(0.4, 0, 0.2, 1);
}

.medaid-form-input:focus {
    border-color: #3a6a6a;
    box-shadow: 0 0 0 3px rgba(58, 106, 106, 0.12);
}

.medaid-form-input::placeholder {
    color: #9aa3aa;
}

.medaid-form-input-wrap {
    position: relative;
}

.medaid-form-input--password {
    padding-right: 44px;
}

/* ---------- Password Toggle ---------- */
.medaid-password-toggle {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #9aa3aa;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    transition: color 150ms ease;
}

.medaid-password-toggle:hover {
    color: #1a2530;
}

.medaid-password-toggle .medaid-eye-closed {
    display: none;
}

.medaid-password-toggle.is-visible .medaid-eye-open {
    display: none;
}

.medaid-password-toggle.is-visible .medaid-eye-closed {
    display: inline-block;
}

/* ---------- Options row ---------- */
.medaid-login-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0.25rem 0 1.25rem;
    font-size: 0.9rem;
}

.medaid-remember {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    cursor: pointer;
    color: #6b7680;
    font-size: 0.9rem;
}

.medaid-remember input[type="checkbox"] {
    accent-color: #3a6a6a;
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.medaid-login-link {
    color: #3a6a6a;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 150ms ease;
}

.medaid-login-link:hover {
    color: #2a4a55;
    text-decoration: underline;
}

/* ---------- Button ---------- */
.medaid-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 1.6rem;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.3;
    text-decoration: none;
    border: 1.5px solid transparent;
    border-radius: 999px;
    cursor: pointer;
    transition: transform 200ms cubic-bezier(0.4, 0, 0.2, 1), background 200ms cubic-bezier(0.4, 0, 0.2, 1), border-color 200ms cubic-bezier(0.4, 0, 0.2, 1), box-shadow 200ms cubic-bezier(0.4, 0, 0.2, 1);
}

.medaid-btn:hover {
    transform: translateY(-1px);
}

.medaid-btn--primary {
    background: #3a6a6a;
    color: #ffffff;
    border-color: #3a6a6a;
    box-shadow: 0 8px 24px -8px rgba(58, 106, 106, 0.45);
}

.medaid-btn--primary:hover {
    background: #2a4a55;
    border-color: #2a4a55;
    box-shadow: 0 10px 28px -8px rgba(42, 74, 85, 0.5);
}

.medaid-btn--block {
    width: 100%;
}

/* ---------- Media ---------- */
@media (max-width: 575px) {
    .medaid-login-outer {
        padding: 1.5rem 1rem;
    }

    .medaid-login-main {
        padding: 1.75rem;
    }
}
