/* Premium Auth Pages Design System */

/* 1. Global Reset & Typography */
:root {
    --auth-primary: #4f46e5;
    --auth-primary-hover: #4338ca;
    --auth-bg: #f8fafc;
    --auth-card-bg: #ffffff;
    --auth-text-main: #1e293b;
    --auth-text-muted: #64748b;
    --auth-input-border: #e2e8f0;
    --auth-input-focus: #4f46e5;
    --auth-radius: 16px;
    --auth-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* 2. Container & Card Layout */
.auth-page-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 15px;
    background-color: #f8fafc;
    background-image: url("../../images/login/bg_login_new.svg");
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    background-attachment: fixed;
}

.auth-card {
    background: var(--auth-card-bg);
    width: 100%;
    max-width: 460px;
    border-radius: var(--auth-radius);
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.05);
    overflow: hidden;
    position: relative;
    margin: 20px auto;
    animation: authSlideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes authSlideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.auth-main-content {
    padding: 25px 30px;
}

/* 3. Headers & Typography */
.auth-header {
    text-align: center;
    margin-bottom: 20px;
}

.auth-header h4 {
    font-weight: 800;
    font-size: 22px;
    color: var(--auth-text-main);
    letter-spacing: -0.025em;
    margin-bottom: 4px;
}

.auth-header p {
    color: var(--auth-text-muted);
    font-size: 14px;
}

/* 4. Form Controls */
.auth-form-group {
    margin-bottom: 12px;
}

.auth-form-group label {
    display: block;
    font-weight: 600;
    font-size: 13px;
    color: var(--auth-text-main);
    margin-bottom: 2px;
}

.auth-form-control {
    width: 100%;
    height: 46px;
    padding: 8px 14px;
    font-size: 14px;
    line-height: 1.5;
    font-weight: 500;
    color: var(--auth-text-main);
    background: #ffffff;
    border: 1.5px solid var(--auth-input-border);
    border-radius: 10px;
    transition: all 0.2s ease;
    display: block;
    box-sizing: border-box;
}

select.auth-form-control {
    padding-top: 0;
    padding-bottom: 0;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2364748b'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 40px;
}

.auth-form-control:focus {
    outline: none;
    border-color: var(--auth-input-focus);
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
}

.auth-form-control::placeholder {
    color: #94a3b8;
    font-weight: 400;
}

/* 5. Select2 Customization */
.select2-container--default .select2-selection--single {
    height: 46px !important;
    border: 1.5px solid var(--auth-input-border) !important;
    border-radius: 10px !important;
    padding: 8px 12px !important;
    display: flex !important;
    align-items: center !important;
    background: #fff !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 44px !important;
    top: 0 !important;
    right: 8px !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    color: var(--auth-text-main) !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    padding-left: 0 !important;
}

/* 6. Primary Button */
.auth-btn-primary {
    width: 100%;
    height: 48px;
    background-color: var(--auth-primary);
    color: #ffffff;
    font-weight: 700;
    font-size: 15px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 6px -1px rgba(79, 70, 229, 0.2), 0 2px 4px -1px rgba(79, 70, 229, 0.1);
}

.auth-btn-primary:hover {
    background-color: var(--auth-primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 10px 15px -3px rgba(79, 70, 229, 0.3);
}

.auth-btn-primary:active {
    transform: translateY(0);
}

/* 7. Links & Sub-sections */
.auth-footer-links {
    margin-top: 24px;
    text-align: center;
    font-size: 14px;
    color: var(--auth-text-muted);
}

.auth-link {
    color: var(--auth-primary);
    font-weight: 700;
    text-decoration: none !important;
    transition: color 0.2s;
}

.auth-link:hover {
    color: var(--auth-primary-hover);
    text-decoration: none !important;
}

.auth-link.small {
    font-size: 12.5px;
    font-weight: 600;
}

/* 8. Demo Access (Login Only) */
.auth-demo-section {
    background-color: #f1f5f9;
    padding: 24px 40px;
    border-top: 1px solid var(--auth-input-border);
    text-align: center;
}

.auth-demo-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--auth-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
}

.auth-btn-demo {
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 8px;
    margin: 4px;
    border: 1px solid var(--auth-input-border);
    background: #ffffff;
    color: var(--auth-text-main);
    transition: all 0.2s;
}

.auth-btn-demo:hover {
    border-color: var(--auth-primary);
    color: var(--auth-primary);
    background: #f5f3ff;
}

/* Responsive Fixes */
@media (max-width: 480px) {
    .auth-main-content {
        padding: 32px 24px;
    }
}
