/* ============================================================
   LOGIN PAGE
   ============================================================ */

.login-body {
    background: var(--color-bg);
    min-height: 100vh;
    display: flex;
    align-items: stretch;
    justify-content: stretch;
}

.login-layout {
    display: flex;
    width: 100%;
    min-height: 100vh;
}

/* ── Left hero panel ─────────────────────────────────────── */
.login-hero {
    flex: 0 0 42%;
    position: relative;
    overflow: hidden;
    background-color: #4a05da;
    background-image:
        radial-gradient(circle at 10% 20%, rgba(99, 56, 241, 0.45) 0%, transparent 42%),
        radial-gradient(circle at 90% 80%, rgba(99, 56, 241, 0.65) 0%, transparent 42%),
        radial-gradient(circle at 50% 50%, rgba(202, 190, 255, 0.1) 0%, transparent 62%);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 52px 56px;
}

.login-hero__deco {
    display: none; /* decorative circles replaced by CSS background-image above */
}

.login-hero__inner {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.login-hero__brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.login-hero__logo {
    width: 38px;
    height: 38px;
    object-fit: contain;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.15);
    padding: 4px;
}

.login-hero__app-name {
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.02em;
}

.login-hero__copy {
    margin: auto 0;
    max-width: 420px;
}

.login-hero__headline {
    font-size: 44px;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.12;
    letter-spacing: -0.03em;
    margin: 0 0 18px;
}

.login-hero__sub {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.82);
    margin: 0;
    line-height: 1.65;
}

.login-hero__footer {
    font-size: 11.5px;
    color: rgba(255, 255, 255, 0.55);
}

/* ── Right sign-in panel ─────────────────────────────────── */
.login-panel {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 36px;
    background: #ffffff;
}

.login-card {
    width: 100%;
    max-width: 388px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Card header */
.login-card__logo-wrap {
    display: none; /* logo is in hero; card header centres text */
}

.login-card__header {
    text-align: center;
}

.login-card__title {
    margin: 0 0 6px;
    font-size: 28px;
    font-weight: 700;
    color: var(--color-text-main);
    letter-spacing: -0.02em;
}

.login-card__subtitle {
    margin: 0;
    font-size: 14px;
    color: var(--color-text-muted);
    line-height: 1.55;
}

/* Role tabs */
.login-roles {
    display: flex;
    background: #f0f3ff;
    border-radius: 14px;
    padding: 5px;
    gap: 3px;
}

.login-role-btn {
    flex: 1;
    padding: 10px 0;
    font-size: 13.5px;
    font-weight: 500;
    color: var(--color-text-muted);
    background: transparent;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background var(--transition-fast), color var(--transition-fast), box-shadow var(--transition-fast);
    font-family: inherit;
}

.login-role-btn:hover {
    color: var(--color-text-main);
    background: rgba(255, 255, 255, 0.7);
}

.login-role-btn.is-active {
    background: #ffffff;
    color: #4a05da;
    font-weight: 600;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
}

/* Google sign-in button */
.login-google-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px 20px;
    background: #ffffff;
    color: var(--color-text-main);
    font-size: 14px;
    font-weight: 500;
    border: 1.5px solid #e1e5f0;
    border-radius: 14px;
    cursor: pointer;
    transition: background var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
    letter-spacing: 0.01em;
    font-family: inherit;
}

.login-google-btn:hover:not(:disabled) {
    background: #f8f9fa;
    border-color: #c7cdd9;
    box-shadow: 0 1px 4px rgba(60, 64, 67, 0.12);
}

.login-google-btn:focus-visible {
    outline: 2px solid #4a05da;
    outline-offset: 2px;
}

.login-google-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Error message */
.login-card__error {
    display: none;
    margin: -10px 0 0;
    font-size: 13px;
    color: #dc2626;
    text-align: center;
    line-height: 1.5;
}

/* Terms */
.login-card__terms {
    margin: 0;
    font-size: 11.5px;
    color: var(--color-text-muted);
    text-align: center;
    line-height: 1.6;
}

.login-card__link {
    color: #4a05da;
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 900px) {
    .login-hero {
        display: none;
    }
    .login-panel {
        flex: 1;
    }
}
