/*
 * OPUS Auth Pages Styling
 */

.auth-wrapper {
    min-height: 100vh;
    display: flex;
    background: linear-gradient(135deg, #0F172A 0%, #1e293b 50%, #0F172A 100%);
    position: relative;
    overflow: hidden;
}

.auth-wrapper::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 50%, rgba(0, 184, 212, 0.06) 0%, transparent 50%),
                radial-gradient(circle at 70% 80%, rgba(0, 229, 255, 0.05) 0%, transparent 40%);
    animation: authBgMove 20s ease-in-out infinite alternate;
}

@keyframes authBgMove {
    from { transform: translate(0, 0); }
    to { transform: translate(-3%, -3%); }
}

.login-brand {
    display: none;
}

.login-brand img {
    width: 32px;
    height: 32px;
    object-fit: contain;
    filter: invert(36%) sepia(84%) saturate(2338%) hue-rotate(209deg) brightness(97%) contrast(93%);
}

.login-brand span {
    color: #2563EB;
    font-weight: 700;
    font-size: 15px;
    letter-spacing: 1px;
}

.auth-left {
    flex: 1.2;
    background-image: url("../images/login_bg.b0a2d0e023ae.png");
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 40px 40px 40px;
    position: relative;
    z-index: 1;
}

.auth-left-glass-card {
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 36px;
    width: 100%;
    max-width: 440px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.auth-left-title {
    font-size: 24px;
    font-weight: 700;
    color: #FFFFFF;
    line-height: 1.4;
    text-align: center;
    margin-top: 12px;
    margin-bottom: 0;
    letter-spacing: 0.5px;
}

.auth-left-graphic {
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 12px;
}

.auth-right {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    position: relative;
    z-index: 1;
}

.auth-card {
    width: 100%;
    max-width: 420px;
    background: #FFFFFF;
    border-radius: 24px;
    padding: 48px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

[data-theme="dark"] .auth-card {
    background: #1E293B;
}

.auth-card h2 {
    font-size: 26px;
    font-weight: 700;
    color: #0F172A;
    margin-bottom: 8px;
}

[data-theme="dark"] .auth-card h2 {
    color: #F1F5F9;
}

.auth-card .auth-subtitle {
    color: #64748B;
    font-size: 14px;
    margin-bottom: 28px;
}

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

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

[data-theme="dark"] .auth-card label {
    color: #CBD5E1;
}

.auth-card .form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #BFDBFE;
    border-radius: 12px;
    font-size: 14px;
    transition: all 0.2s ease;
    background: #EFF6FF;
    color: #0F172A;
}

[data-theme="dark"] .auth-card .form-control {
    background: #0F172A;
    border-color: #1E3A8A;
    color: #F1F5F9;
}

.auth-card .form-control:focus {
    outline: none;
    border-color: #2563EB;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.25);
    background: #DBEAFE;
}

[data-theme="dark"] .auth-card .form-control:focus {
    background: #1E293B;
    border-color: #2563EB;
}

.auth-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #1E3A8A 0%, #2563EB 100%);
    color: #FFFFFF;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}

.auth-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.5);
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 24px 0;
    color: #94A3B8;
    font-size: 13px;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #E2E8F0;
}

[data-theme="dark"] .auth-divider::before,
[data-theme="dark"] .auth-divider::after {
    background: #334155;
}

.google-btn {
    width: 100%;
    padding: 12px;
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    color: #334155;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.2s ease;
    text-decoration: none;
}

[data-theme="dark"] .google-btn {
    background: #1E293B;
    border-color: #334155;
    color: #CBD5E1;
}

.google-btn:hover {
    background: #F8FAFC;
    border-color: #2563EB;
}

[data-theme="dark"] .google-btn:hover {
    background: #334155;
}

.google-btn img {
    width: 20px;
    height: 20px;
}

.auth-footer {
    text-align: center;
    margin-top: 24px;
    font-size: 13px;
    color: #64748B;
}

.auth-footer a {
    color: #2563EB;
    font-weight: 600;
    text-decoration: none;
}

.auth-footer a:hover {
    color: #1D4ED8;
    text-decoration: underline;
}

.forgot-link {
    color: #2563EB;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s;
}

.forgot-link:hover {
    color: #1D4ED8;
    text-decoration: underline;
}

.auth-error {
    background: rgba(239, 68, 68, 0.1);
    color: #EF4444;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 16px;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

/* Pending Page */
.pending-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0F172A, #1a2744);
}

.pending-card {
    text-align: center;
    max-width: 480px;
    padding: 48px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.pending-card .pending-icon {
    font-size: 64px;
    color: #F59E0B;
    margin-bottom: 24px;
}

.pending-card h2 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 12px;
}

.pending-card p {
    color: #64748B;
    line-height: 1.7;
}

.mobile-logo-container {
    display: none;
    text-align: center;
    margin-bottom: 24px;
}

.mobile-logo {
    width: 160px;
    height: auto;
    object-fit: contain;
}

/* Responsive */
@media (max-width: 991px) {
    .auth-left { display: none; }
    .auth-right { width: 100%; }
    .mobile-logo-container { display: block; }
    .login-brand { display: none; }
}

@media (max-width: 576px) {
    .auth-card { padding: 28px 20px; }
    .auth-right { padding: 20px; }
}

/* Custom interactive input with icon styles */
.input-with-icon {
    position: relative;
    width: 100%;
}

.input-with-icon i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #94A3B8;
    font-size: 15px;
    transition: all 0.3s ease;
    pointer-events: none;
}

.input-with-icon input,
.input-with-icon textarea,
.input-with-icon select {
    padding-left: 46px !important;
}

.input-with-icon input:focus ~ i,
.input-with-icon textarea:focus ~ i,
.input-with-icon select:focus ~ i {
    color: #2563EB;
    transform: translateY(-50%) scale(1.1);
}

.toggle-password-visibility {
    position: absolute !important;
    right: 16px !important;
    left: auto !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    cursor: pointer !important;
    color: #94A3B8 !important;
    pointer-events: auto !important;
    z-index: 10 !important;
    transition: color 0.2s ease !important;
}

.toggle-password-visibility:hover {
    color: #2563EB !important;
}


