/* ==========================================================================
   SMO Unified Auth & Public Form Pages (auth-pages.css)
   Matches SMO Design System: #f3f6fb bg, #ffffff 12px cards, #dbe4f0 border,
   #1558f5 royal-blue actions, 16px mobile inputs, 44px touch targets.
   ========================================================================== */

body {
    background-color: #f3f6fb !important;
    color: #0f172a !important;
    font-family: 'Inter', 'Nunito', -apple-system, BlinkMacSystemFont, sans-serif !important;
}

.top-nav {
    background: rgba(255, 255, 255, 0.96) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border-bottom: 1px solid #dbe4f0 !important;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.04) !important;
}

.top-nav .navbar-brand {
    color: #0f172a !important;
    font-weight: 800 !important;
}

.top-nav .navbar-brand span {
    color: #1558f5 !important;
}

.top-nav .nav-link {
    color: #52637a !important;
    font-weight: 600 !important;
    transition: color 0.15s ease;
}

.top-nav .nav-link:hover,
.top-nav .nav-item.active .nav-link {
    color: #1558f5 !important;
}

.top-nav .navbar-toggler {
    border-color: #dbe4f0 !important;
    color: #0f172a !important;
}

.top-nav .navbar-toggler-icon i {
    color: #0f172a !important;
}

.login-page-wrapper,
.auth-page-wrapper {
    min-height: calc(100vh - 52px) !important;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow-x: hidden;
    padding: 84px 12px 36px !important;
    background: #f3f6fb !important;
}

.ambient-orb,
.grid-pattern-overlay {
    display: none !important;
}

.login-card-container,
.auth-card-container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 430px !important;
    padding: 0 !important;
}

.login-card,
.auth-card {
    background: #ffffff !important;
    border-radius: 12px !important;
    border: 1px solid #dbe4f0 !important;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06) !important;
    padding: 28px 24px !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    animation: none !important;
}

.brand-icon-badge {
    width: 48px !important;
    height: 48px !important;
    border-radius: 12px !important;
    background: #eff6ff !important;
    border: 1px solid #bfdbfe !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: none !important;
    margin-bottom: 14px !important;
    color: #1558f5 !important;
    font-size: 1.2rem !important;
}

.brand-icon-badge-success {
    width: 52px !important;
    height: 52px !important;
    border-radius: 12px !important;
    background: #ecfdf5 !important;
    border: 1px solid #a7f3d0 !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: none !important;
    margin-bottom: 14px !important;
    color: #059669 !important;
    font-size: 1.35rem !important;
}

.login-card-title,
.auth-card-title {
    color: #0f172a !important;
    font-weight: 800 !important;
    font-size: 1.35rem !important;
    letter-spacing: -0.02em;
    margin-bottom: 6px !important;
}

.login-card-subtitle,
.auth-card-subtitle,
.auth-card-text {
    color: #52637a !important;
    font-size: 0.875rem !important;
    margin-bottom: 20px !important;
    line-height: 1.5;
}

.form-group-custom {
    margin-bottom: 14px !important;
    text-align: left;
}

.form-label-custom {
    display: flex;
    align-items: center;
    font-size: 0.8rem !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    margin-bottom: 6px !important;
}

.form-label-custom i {
    color: #1558f5 !important;
    margin-right: 6px;
    font-size: 0.85rem;
}

.custom-input-group {
    display: flex;
    align-items: center;
    background: #ffffff !important;
    border: 1px solid #dbe4f0 !important;
    border-radius: 10px !important;
    overflow: hidden;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.custom-input-group:focus-within {
    border-color: #1558f5 !important;
    box-shadow: 0 0 0 3px rgba(21, 88, 245, 0.14) !important;
    background: #ffffff !important;
}

.input-icon-prefix {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 10px 0 12px !important;
    color: #64748b !important;
    font-size: 0.9rem;
    background: transparent;
}

.custom-input-group:focus-within .input-icon-prefix {
    color: #1558f5 !important;
}

.custom-form-control {
    flex: 1;
    min-width: 0;
    height: 44px !important;
    background: transparent;
    border: none;
    outline: none;
    padding: 8px 10px 8px 0 !important;
    font-size: 0.92rem;
    color: #0f172a !important;
    font-family: inherit;
}

.btn-toggle-pwd {
    border: none;
    background: transparent;
    min-width: 44px;
    min-height: 44px;
    padding: 0 10px !important;
    color: #64748b;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-toggle-pwd:hover,
.btn-toggle-pwd:focus-visible {
    color: #1558f5;
    outline: 2px solid #1558f5;
    outline-offset: -2px;
}

.remember-me-checkbox {
    width: 17px !important;
    height: 17px !important;
    border-radius: 4px;
    cursor: pointer;
    accent-color: #1558f5 !important;
}

.remember-me-label {
    font-size: 0.82rem !important;
    color: #52637a !important;
    font-weight: 600;
    cursor: pointer;
    margin-left: 6px;
    margin-bottom: 0;
}

.forgot-password-link {
    font-size: 0.82rem !important;
    font-weight: 700 !important;
    color: #1558f5 !important;
    text-decoration: none;
}

.forgot-password-link:hover {
    color: #1248d4 !important;
    text-decoration: underline;
}

.btn-login-submit,
.btn-auth-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 44px !important;
    height: 44px !important;
    background: #1558f5 !important;
    border: 1px solid #1558f5 !important;
    border-radius: 10px !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    font-size: 0.92rem !important;
    box-shadow: 0 2px 8px rgba(21, 88, 245, 0.18) !important;
    cursor: pointer;
    transition: background-color 0.15s ease, box-shadow 0.15s ease;
    margin-top: 8px !important;
}

.btn-login-submit:hover,
.btn-auth-submit:hover {
    background: #1248d4 !important;
    border-color: #1248d4 !important;
    transform: none !important;
    color: #ffffff !important;
}

.login-footer,
.auth-footer {
    background: #ffffff !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border-top: 1px solid #dbe4f0 !important;
    color: #52637a !important;
    font-size: 0.8rem !important;
    padding: 14px 12px !important;
    position: static !important;
}

@media (max-width: 767.98px) {
    .login-page-wrapper,
    .auth-page-wrapper {
        padding: 74px 12px 24px !important;
    }

    .login-card,
    .auth-card {
        padding: 20px 16px !important;
    }

    .login-card-title,
    .auth-card-title {
        font-size: 1.25rem !important;
    }

    .custom-form-control,
    .login-card input,
    .auth-card input {
        font-size: 16px !important;
    }
}
