/* Explain: Styles for the login page, including forms, branding, and layout. */
/* Tela de acesso — padrão visual split-screen GeriaCare */
.login-layout {
    display: grid;
    min-height: 100vh;
    grid-template-columns: 1fr;
    background: var(--surface-color);
}

@media (min-width: 960px) {
    .login-layout {
        grid-template-columns: minmax(450px, 1fr) 1.25fr;
    }
}

/* Coluna esquerda - Formulário */
.login-left {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2.5rem 1.5rem;
    position: relative;
}

.login-left-inner {
    width: 100%;
    max-width: 27.5rem;
}

/* Marca / Logo no topo do form */
.login-brand {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    margin-bottom: 2.5rem;
}

.login-brand__logo {
    width: 3.5rem;
    height: 3.5rem;
    object-fit: contain;
    flex-shrink: 0;
}

.login-brand__text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.login-brand__name {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--brand-navy);
    letter-spacing: 0.02em;
    line-height: 1.2;
}

.login-brand__sub {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-top: 0.15rem;
}

/* Textos e títulos */
.login-title {
    font-size: 2.3rem;
    font-weight: 800;
    color: var(--brand-navy);
    letter-spacing: -0.02em;
    margin: 0 0 1rem;
    line-height: 1.15;
}

.login-intro {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.65;
    margin-bottom: 2rem;
}

/* Abas */
.login-tabs {
    display: flex;
    background: var(--surface-alt);
    border: 1px solid var(--border-color);
    border-radius: 0.65rem;
    padding: 0.25rem;
    gap: 0.25rem;
    margin-bottom: 2rem;
}

.login-tab {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: transparent;
    border: none;
    padding: 0.75rem 0.5rem;
    border-radius: 0.5rem;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s ease;
}

.login-tab:hover {
    color: var(--primary-hover);
}

.login-tab.is-active {
    background: var(--surface-color);
    color: var(--brand-navy);
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.08);
}

.login-panel[hidden] {
    display: none !important;
}

/* Formulário */
.login-step {
    margin-bottom: 1.5rem;
}

.login-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.login-input-wrapper > i:first-child {
    position: absolute;
    left: 1.1rem;
    color: var(--text-muted);
    font-size: 0.95rem;
    pointer-events: none;
}

.login-input-wrapper .clinic-field.with-icon {
    padding-left: 2.8rem !important;
    background: var(--surface-color) !important;
    min-height: 48px;
    border-radius: 0.5rem;
}

.login-eye-btn {
    position: absolute;
    right: 0.4rem;
    width: 2.3rem;
    height: 2.3rem;
    display: grid;
    place-items: center;
    border: none;
    background: none;
    color: var(--text-muted);
    cursor: pointer;
    border-radius: 0.4rem;
    transition: color 0.2s ease, background 0.2s ease;
}

.login-eye-btn:hover {
    color: var(--primary-hover);
    background: var(--primary-soft);
}

.login-submit {
    width: 100%;
    min-height: 48px;
    border-radius: 0.5rem;
    background: var(--brand-navy);
    border: none;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 700;
    margin-top: 0.5rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.1s ease;
}

.login-submit:hover:not(:disabled) {
    background: var(--primary-hover);
}

.login-submit:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.login-hint {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.login-status-hint {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--primary-hover);
    margin-bottom: 1.25rem;
}

.login-links {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: -0.25rem;
}

.login-link {
    background: none;
    border: none;
    padding: 0;
    color: var(--primary-hover);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.login-link:hover {
    color: var(--brand-navy);
}

.login-msg {
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1.5;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1.25rem;
}

.login-msg--error { background: var(--danger-soft); color: var(--danger-color); }
.login-msg--ok { background: #ecfdf5; color: #15803d; }

.login-foot {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.74rem;
    color: var(--text-muted);
    line-height: 1.6;
    text-align: center;
}

.login-code-field {
    letter-spacing: 0.35em;
    font-weight: 700;
}

/* Coluna direita - Banner (azul) */
.login-right {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 3rem 10%;
    background: var(--brand-navy);
    color: #fff;
    text-align: center;
}

@media (min-width: 960px) {
    .login-right {
        display: flex;
    }
}

.login-right-icon {
    width: 5.5rem;
    height: 5.5rem;
    border-radius: 1.2rem;
    background: rgba(255, 255, 255, 0.12);
    display: grid;
    place-items: center;
    font-size: 2.2rem;
    margin-bottom: 2.5rem;
}

.login-right-title {
    font-size: clamp(2rem, 3.5vw, 2.75rem);
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 1.5rem;
    color: #fff;
}

.login-right-sub {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
}