/* ============================================================
   Hypera Pharma — Login Page Styles (SSO Microsoft)
   ============================================================ */

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    height: 100%;
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    -webkit-font-smoothing: antialiased;
}

/* ── Página completa ── */
.login-page {
    display: flex;
    min-height: 100vh;
    background: linear-gradient( -45deg, var(--cor-primaria-clara) 0%, var(--cor-primaria-escura) 60% );
    position: relative;
    overflow: hidden;
}

/* Efeito de brilho sutil no fundo */
.login-page::before {
    content: '';
    position: absolute;
    top: 40%;
    right: -10%;
    width: 70%;
    height: 80%;
    background: radial-gradient(ellipse, rgba(0, 220, 220, 0.18) 0%, transparent 60%);
    pointer-events: none;
}

/* ── Painel esquerdo ── */
.left-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 2.5rem 3rem;
    position: relative;
    z-index: 1;
    max-width: 55%;
}

/* ── Logo ── */
.logo-area {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: auto;
}

.logo-icon {
    width: 44px;
    height: 44px;
    background: rgba(0, 212, 212, 0.12);
    border: 1px solid rgba(0, 212, 212, 0.35);
    border-radius: 40%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    flex-shrink: 0;
    color: var(--cor-azul-neon);
}

.logo-icon svg {
    width: 100%;
    height: 100%;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.logo-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.01em;
}

.logo-subtitle {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.65);
    font-weight: 400;
}

/* ── Conteúdo hero ── */
.hero-content {
    margin-top: auto;
    margin-bottom: 3rem;
    max-width: 420px;
}

.hero-heading {
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.25rem;
}

.text-white {
    color: #ffffff;
}

.text-accent {
    color: #01BFDF;
}

.hero-description {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.65;
    margin-bottom: 2rem;
    max-width: 380px;
}

/* ── Badges ── */
.badges {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 1rem;
    border: 1px solid rgba(0, 212, 212, 0.45);
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.2);
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.8rem;
    font-weight: 500;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.badge-icon {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

/* ── Footer ── */
.page-footer {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
    margin-top: auto;
}

/* ── Painel direito ── */
.right-panel {
    width: 460px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 2.5rem;
    position: relative;
    z-index: 1;
}

/* ── Card de login ── */
.login-card {
    width: 100%;
    max-width: 360px;
    background: rgba(255, 255, 255, 0.97);
    border-radius: 20px;
    padding: 2.5rem 2.25rem 2rem;
    box-shadow:
        0 25px 60px rgba(0, 0, 0, 0.35),
        0 0 0 1px rgba(255, 255, 255, 0.15);
}

.login-card-header {
    margin-bottom: 2rem;
    text-align: center;
}

.login-title {
    font-size: 1.45rem;
    font-weight: 700;
    color: #0f2a2a;
    margin-bottom: 0.35rem;
}

.login-subtitle {
    font-size: 0.875rem;
    color: #6b7280;
    line-height: 1.5;
}

/* ── Área SSO ── */
.sso-area {
    margin-bottom: 1.5rem;
}

/* ── Botão Entrar com Microsoft ── */
.btn-microsoft {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.85rem 1.25rem;
    background: #ffffff;
    color: #3c4043;
    border: 1.5px solid #dadce0;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.18s, border-color 0.18s, box-shadow 0.18s, transform 0.12s;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
    letter-spacing: 0.01em;
}

.btn-microsoft:hover:not(:disabled) {
    background: #f8f9fa;
    border-color: #b0b8c1;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12);
    transform: translateY(-1px);
}

.btn-microsoft:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.btn-microsoft:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Logo Microsoft */
.ms-logo {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* ── Spinner de loading ── */
.spinner {
    width: 16px;
    height: 16px;
    border: 2px solid var(--cor-primaria-clara);
    border-top-color: #3c4043;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    flex-shrink: 0;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ── Informação SSO ── */
.sso-info {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0.45rem;
    text-align: center;
    color: #9ca3af;
    font-size: 0.78rem;
    line-height: 1.6;
    padding-top: 0.25rem;
}

.sso-info-icon {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    margin-top: 2px;
}

/* ============================================================
   Responsividade
   ============================================================ */
@media (max-width: 900px) {
    .login-page {
        flex-direction: column;
    }

    .left-panel {
        max-width: 100%;
        padding: 2rem 1.75rem 1.5rem;
        min-height: 50vh;
    }

    .hero-content {
        margin-bottom: 1.5rem;
    }

    .right-panel {
        width: 100%;
        padding: 1.5rem 1.25rem 2.5rem;
    }

    .login-card {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .left-panel {
        padding: 1.5rem 1.25rem 1rem;
    }

    .hero-heading {
        font-size: 1.6rem;
    }

    .badges {
        gap: 0.5rem;
    }

    .login-card {
        padding: 2rem 1.5rem 1.75rem;
    }
}
