/**
 * Corporate login (/login) — same shell as register / quick-register pages.
 */

body.login-page.auth-shell {
    align-items: flex-start;
    justify-content: center;
    padding: 3.25rem 1.25rem 2.5rem;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

body.login-page.auth-shell .login-top-bar.register-top-bar {
    position: fixed;
    top: max(0.75rem, env(safe-area-inset-top, 0px));
    left: max(1rem, env(safe-area-inset-left, 0px));
    right: auto;
    width: max-content;
    max-width: calc(100vw - 2rem);
    margin: 0;
    padding: 0;
    display: block;
    z-index: 100;
    background: transparent;
    box-shadow: none;
}

body.login-page.auth-shell .register-layout {
    width: 100%;
    max-width: 480px;
}

body.login-page.auth-shell .login-card.auth-card {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 1.75rem 1.5rem;
    border-radius: 20px;
}

body.login-page.auth-shell .login-header {
    margin-bottom: 1rem;
    text-align: center;
}

body.login-page.auth-shell .login-header .logo-icon-wrap {
    width: auto;
    height: auto;
    margin: 0 auto 0.75rem;
}

body.login-page.auth-shell .login-header .logo-icon-img {
    width: 48px;
    height: 48px;
}

body.login-page.auth-shell .login-header h1 {
    font-size: 1.35rem;
    margin-bottom: 0.35rem;
    color: #0f172a;
}

body.login-page.auth-shell .login-header p {
    font-size: 0.875rem;
    color: #64748b;
}

body.login-page.auth-shell .login-auth-stack {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

body.login-page.auth-shell .login-panel-primary p {
    color: #64748b;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
    text-align: center;
}

body.login-page.auth-shell .btn-login {
    width: 100%;
    min-height: 48px;
    border-radius: 14px;
    font-weight: 700;
}

body.login-page.auth-shell .manual-login-panel {
    margin-top: 0.25rem;
    padding-top: 1rem;
    border-top: 1px solid #dbeafe;
}

body.login-page.auth-shell .manual-login-hint {
    text-align: center;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid #e2e8f0;
    color: #64748b;
    font-size: 0.875rem;
}

body.login-page.auth-shell .btn-manual-login-back {
    display: block;
    width: 100%;
    margin-top: 0.75rem;
    padding: 0.5rem;
    border: none;
    background: none;
    color: #0369a1;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
}

body.login-page.auth-shell .btn-manual-login-back:hover {
    text-decoration: underline;
}

body.login-page.auth-shell .login-footer-links {
    margin-top: 0.5rem;
    text-align: center;
    font-size: 0.875rem;
    line-height: 1.6;
}

body.login-page.auth-shell .login-footer-links .help-link {
    font-weight: 600;
    color: #0284c7;
}

body.login-page.auth-shell .login-footer-links .sep {
    color: #94a3b8;
    margin: 0 0.35rem;
}

body.login-page.auth-shell .login-error-message {
    padding: 0.65rem 0.85rem;
    border-radius: 10px;
    font-size: 0.875rem;
}

body.login-page.auth-shell .form-group {
    margin-bottom: 0.85rem;
}

body.login-page.auth-shell .input-wrapper input {
    font-size: 16px;
    min-height: 48px;
}

@media (max-width: 640px) {
    body.login-page.auth-shell {
        padding: 3.5rem max(0.75rem, env(safe-area-inset-left)) 1.5rem max(0.75rem, env(safe-area-inset-right));
    }

    body.login-page.auth-shell .login-card.auth-card {
        padding: 1.25rem 1rem;
        border-radius: 16px;
    }

    body.login-page.auth-shell .login-header h1 {
        font-size: 1.2rem;
    }

    body.login-page.auth-shell .login-footer-links {
        text-align: left;
    }

    body.login-page.auth-shell .login-footer-links .help-link {
        display: inline-block;
        margin: 0.2rem 0.35rem 0.2rem 0;
    }
}

/* Super admin login — same card, slightly narrower */
body.login-page.auth-shell .login-card.superadmin-login-card {
    max-width: 100%;
}
