﻿/* ============================================================
   50 DOCTORS - LOGIN
   ============================================================ */

:root {
    --fd-blue: #0b63ce;
    --fd-blue-dark: #0b4ea2;
    --fd-blue-soft: #eef6ff;
    --fd-border: #dbe4ef;
    --fd-text: #182433;
    --fd-muted: #667085;
    --fd-bg: #f5f8fc;
    --fd-white: #ffffff;
}

html,
body {
    min-height: 100%;
}

    body.fd-login-body {
        margin: 0;
        min-height: 100vh;
        background: radial-gradient(circle at top left, rgba(32, 149, 243, 0.10), transparent 34rem), linear-gradient(180deg, #f8fbff 0%, var(--fd-bg) 100%);
        color: var(--fd-text);
        font-family: Inter, "Segoe UI", Arial, sans-serif;
    }

.fd-login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 20px;
}

.fd-login-card {
    width: 100%;
    max-width: 560px;
    background: var(--fd-white);
    border: 1px solid rgba(15, 76, 129, 0.10);
    border-radius: 22px;
    box-shadow: 0 24px 70px rgba(21, 48, 78, 0.12);
    padding: 30px 36px 24px;
}

.fd-login-brand {
    text-align: center;
    margin-bottom: 22px;
}

.fd-login-logo {
    display: block;
    width: auto;
    height: auto;
    max-width: min(100%, 430px);
    max-height: 155px;
    object-fit: contain;
    margin: 0 auto 12px;
}

.fd-login-edition {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 5px 12px;
    border-radius: 999px;
    background: var(--fd-blue-soft);
    color: var(--fd-blue-dark);
    font-size: 0.73rem;
    font-weight: 800;
    letter-spacing: 0.10em;
}

.fd-login-heading {
    text-align: center;
    margin-bottom: 24px;
}

.fd-login-title {
    margin: 0 0 7px;
    font-size: clamp(1.65rem, 3vw, 2.15rem);
    line-height: 1.15;
    font-weight: 750;
    color: #111827;
}

.fd-login-subtitle {
    max-width: 430px;
    margin: 0 auto;
    color: var(--fd-muted);
    font-size: 0.94rem;
    line-height: 1.55;
}

.fd-login-form {
    width: 100%;
}

.fd-login-label {
    margin-bottom: 6px;
    color: #344054;
    font-size: 0.88rem;
    font-weight: 650;
}

.fd-login-input {
    min-height: 46px;
    border: 1px solid #cfd9e6;
    border-radius: 10px;
    padding: 10px 13px;
    font-size: 0.95rem;
    box-shadow: none !important;
}

    .fd-login-input:focus {
        border-color: #4a9aea;
        box-shadow: 0 0 0 0.2rem rgba(11, 99, 206, 0.12) !important;
    }

.fd-login-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin: 4px 0 22px;
}

.fd-login-remember {
    color: #475467;
    font-size: 0.88rem;
}

.fd-login-link {
    color: var(--fd-blue-dark);
    font-size: 0.88rem;
    font-weight: 650;
    text-decoration: none;
}

    .fd-login-link:hover {
        text-decoration: underline;
    }

.fd-login-button {
    min-height: 48px;
    border: 0;
    border-radius: 11px;
    background: linear-gradient(135deg, #0b74dc, #0753ad);
    color: #ffffff;
    font-size: 0.96rem;
    font-weight: 750;
    box-shadow: 0 10px 22px rgba(11, 99, 206, 0.20);
}

    .fd-login-button:hover,
    .fd-login-button:focus {
        background: linear-gradient(135deg, #096acb, #064a9c);
        color: #ffffff;
    }

.fd-login-register {
    margin-top: 22px;
    padding: 18px;
    text-align: center;
    border: 1px solid #d8e7f8;
    border-radius: 14px;
    background: #f7fbff;
}

.fd-login-register-title {
    margin-bottom: 4px;
    color: #1d2939;
    font-size: 0.96rem;
    font-weight: 750;
}

.fd-login-register-text {
    max-width: 420px;
    margin: 0 auto 13px;
    color: var(--fd-muted);
    font-size: 0.84rem;
    line-height: 1.5;
}

.fd-login-register-button {
    min-width: 150px;
    border: 1px solid #8ebeea;
    border-radius: 9px;
    background: #ffffff;
    color: var(--fd-blue-dark);
    font-size: 0.88rem;
    font-weight: 750;
}

    .fd-login-register-button:hover {
        border-color: var(--fd-blue);
        background: var(--fd-blue-soft);
        color: var(--fd-blue-dark);
    }

.fd-login-help {
    margin-top: 18px;
    padding-top: 18px;
    text-align: center;
    border-top: 1px solid #e7edf4;
}

.fd-login-help-title {
    margin-bottom: 4px;
    color: #344054;
    font-size: 0.84rem;
    font-weight: 750;
}

.fd-login-help-text {
    margin-bottom: 3px;
    color: var(--fd-muted);
    font-size: 0.79rem;
    line-height: 1.45;
}

.fd-login-admin-link {
    color: var(--fd-blue-dark);
    font-size: 0.80rem;
    font-weight: 700;
    text-decoration: none;
    overflow-wrap: anywhere;
}

    .fd-login-admin-link:hover {
        text-decoration: underline;
    }

.fd-login-footer {
    margin-top: 20px;
    text-align: center;
    color: #98a2b3;
    font-size: 0.72rem;
}

@media (max-width: 767.98px) {
    .fd-login-page {
        align-items: flex-start;
        padding: max(18px, env(safe-area-inset-top)) 12px max(18px, env(safe-area-inset-bottom));
    }

    .fd-login-card {
        max-width: 500px;
        border-radius: 16px;
        padding: 22px 18px 20px;
    }

    .fd-login-logo {
        max-width: min(100%, 330px);
        max-height: 118px;
    }

    .fd-login-heading {
        margin-bottom: 20px;
    }

    .fd-login-title {
        font-size: 1.65rem;
    }

    .fd-login-subtitle {
        font-size: 0.88rem;
    }

    .fd-login-options {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 399.98px) {
    .fd-login-page {
        padding-left: 8px;
        padding-right: 8px;
    }

    .fd-login-card {
        padding-left: 14px;
        padding-right: 14px;
    }

    .fd-login-logo {
        max-width: 285px;
        max-height: 102px;
    }

    .fd-login-edition {
        font-size: 0.67rem;
    }

    .fd-login-register {
        padding: 15px 12px;
    }
}

@media (min-width: 768px) and (max-height: 780px) {
    .fd-login-page {
        align-items: flex-start;
        padding-top: 18px;
        padding-bottom: 18px;
    }

    .fd-login-card {
        padding-top: 20px;
        padding-bottom: 18px;
    }

    .fd-login-logo {
        max-height: 108px;
    }

    .fd-login-brand {
        margin-bottom: 14px;
    }

    .fd-login-heading {
        margin-bottom: 16px;
    }

    .fd-login-register {
        margin-top: 16px;
        padding-top: 14px;
        padding-bottom: 14px;
    }
}
