/**
 * SmartPunch login — full-screen editorial stage (no split panel).
 */
html {
    width: 100%;
    height: 100dvh;
    min-height: 100dvh;
    overflow-x: hidden;
}

body {
    width: 100%;
    min-height: 100dvh;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.login-stage {
    flex: 1 1 auto;
    width: 100%;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(24px, 5vh, 56px) clamp(20px, 4vw, 48px);
    box-sizing: border-box;
}

.login-stage-inner {
    width: 100%;
    max-width: 440px;
}

.login-footer {
    word-break: break-word;
    margin-top: 1.5rem;
}

/* Short screens — allow scroll, tighten spacing */
@media (max-height: 720px) {
    .login-stage {
        align-items: flex-start;
        padding-top: max(20px, env(safe-area-inset-top));
        padding-bottom: max(20px, env(safe-area-inset-bottom));
    }

    .login-stage-inner {
        gap: 22px;
    }

    .login-hero-title {
        font-size: clamp(34px, 7vh, 48px) !important;
    }
}

@media (max-width: 575.98px) {
    .login-stage {
        padding: max(20px, env(safe-area-inset-top)) 16px max(16px, env(safe-area-inset-bottom));
        align-items: flex-start;
    }

    .login-type-btn {
        font-size: 11px;
        padding: 10px 8px;
        gap: 6px;
        white-space: nowrap;
    }

    .login-type-btn i,
    .login-type-btn .fas {
        font-size: 13px;
    }

    .form-control {
        font-size: 16px;
    }

    .btn-login {
        min-height: 48px;
    }
}

/* Login type switcher + field icons — keep FA glyphs aligned */
.login-type-switcher {
    display: flex;
    align-items: stretch;
    gap: 4px;
}

.login-type-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.login-type-btn span {
    line-height: 1.2;
}

.input-wrapper {
    position: relative;
    display: block;
}

.btn-login {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px;
}
