/* Auth Module - Login Page */

body.auth-wrapper {
    background: linear-gradient(135deg, #00174D 0%, #000d2e 50%, #00091f 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    margin: 0;
    font-family: 'Outfit', 'Inter', sans-serif;
    color: #1a1f2e;
    position: relative;
    overflow: hidden;
}

body.auth-wrapper::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(212, 160, 23, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

body.auth-wrapper::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.03) 0%, transparent 70%);
    pointer-events: none;
}

.auth-card {
    background: #ffffff;
    padding: 48px 40px;
    border-radius: 24px;
    width: 100%;
    max-width: 420px;
    border: none;
    box-shadow: 
        0 25px 60px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 1;
    margin: 20px;
}

.auth-header {
    text-align: center;
    margin-bottom: 36px;
}

.auth-logo-box {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.auth-logo-box i {
    font-size: 48px;
    color: #D4A017;
}

.auth-logo-img {
    max-width: 80px;
    max-height: 80px;
    object-fit: contain;
}

.auth-title {
    margin: 0 0 6px;
    font-size: 26px;
    font-weight: 800;
    color: #00174D;
    letter-spacing: -0.5px;
}

.auth-subtitle {
    color: #64748b;
    font-size: 15px;
    margin: 0;
    font-weight: 400;
}

.auth-label {
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 8px;
    display: block;
}

.auth-tabs {
    display: flex;
    background: #f1f5f9;
    border-radius: 14px;
    padding: 5px;
    margin-bottom: 28px;
    border: 1px solid #e2e8f0;
}

.auth-tab {
    flex: 1;
    text-align: center;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 10px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    color: #64748b;
    letter-spacing: 0.3px;
}

.auth-tab.active {
    background: #00174D;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 23, 77, 0.25);
}

.auth-tab:not(.active):hover {
    background: #e2e8f0;
    color: #00174D;
}

.alert-error {
    background: #fef2f2;
    color: #b91c1c;
    padding: 14px 16px;
    border-radius: 12px;
    margin-bottom: 20px;
    font-size: 14px;
    border: 1px solid #fecaca;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
}

.alert-error i {
    color: #dc2626;
    font-size: 16px;
}

.form-group {
    margin-bottom: 20px;
}

.auth-label {
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 8px;
    display: block;
}

.input-with-icon {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 16px;
    pointer-events: none;
    z-index: 10;
    transition: color 0.2s ease;
}

.input-control-with-icon {
    padding-left: 48px !important;
}

.form-control {
    width: 100%;
    padding: 14px 16px;
    font-size: 15px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    background: #f8fafc;
    color: #1e293b;
    transition: all 0.2s ease;
    font-family: 'Inter', sans-serif;
}

.form-control:focus {
    outline: none;
    border-color: #00174D;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(0, 23, 77, 0.08);
}

.form-control:focus + .input-icon,
.input-with-icon:focus-within .input-icon {
    color: #00174D;
}

.form-control::placeholder {
    color: #94a3b8;
}

.btn-primary {
    width: 100%;
    padding: 16px 24px;
    font-size: 15px;
    font-weight: 700;
    background: linear-gradient(135deg, #00174D 0%, #0a2e80 100%);
    color: #ffffff;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-family: 'Inter', sans-serif;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 23, 77, 0.35);
    background: linear-gradient(135deg, #0a2e80 0%, #00174D 100%);
}

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

.btn-primary:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none !important;
}

.btn-block {
    width: 100%;
}

.mt-3 {
    margin-top: 0.75rem;
}

.mt-4 {
    margin-top: 1.5rem !important;
}

.mr-2 {
    margin-right: 0.5rem !important;
}

.ml-2 {
    margin-left: 0.5rem !important;
}

.btn-loader i {
    font-size: 1rem;
}

.hide {
    display: none !important;
}

.flex-center {
    display: flex !important;
    align-items: center;
    justify-content: center;
}

@media (max-width: 480px) {
    .auth-card {
        padding: 36px 24px;
        margin: 16px;
        border-radius: 20px;
    }
    
    .auth-title {
        font-size: 22px;
    }
    
    .auth-logo-box {
        width: 64px;
        height: 64px;
    }
}
