/* ============================================================
   auth.css ǽ'?? Shared styles for login.aspx and sign-up.aspx
   Pic-Box Authentication Pages
   ============================================================ */

/* ǽ??'ǽ??' Page Layout ǽ??'ǽ??' */
.otp-login-section {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 0;
}

/* ǽ??'ǽ??' Card Container ǽ??'ǽ??' */
.otp-login-card {
    width: 100%;
    max-width: 440px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.10);
    padding: 40px 36px 32px 36px;
}

/* ǽ??'ǽ??' Heading ǽ??'ǽ??' */
.otp-login-card .login-title {
    font-size: 13px;
    letter-spacing: 2px;
    color: #888;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.otp-login-card .login-heading {
    font-size: 22px;
    font-weight: 700;
    color: #111;
    margin-bottom: 28px;
}

/* ǽ??'ǽ??' Form Labels ǽ??'ǽ??' */
.otp-login-card .form-label {
    font-size: 13px;
    font-weight: 600;
    color: #444;
    margin-bottom: 5px;
    display: block;
}

/* ǽ??'ǽ??' Inputs ǽ??'ǽ??' */
.otp-login-card .form-control {
    border-radius: 8px;
    border: 1.5px solid #ddd;
    font-size: 15px;
    padding: 10px 14px;
    transition: border-color 0.2s;
    width: 100%;
}

.otp-login-card .form-control:focus {
    border-color: #000;
    box-shadow: none;
    outline: none;
}

/* ǽ??'ǽ??' Action Button ǽ??'ǽ??' */
.otp-btn {
    background-color: #000;
    color: #fff;
    border: none;
    border-radius: 8px;
    width: 100%;
    padding: 12px;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 1px;
    margin-top: 18px;
    transition: background 0.2s, opacity 0.2s;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.otp-btn:hover:not(:disabled) {
    background-color: #222;
}

.otp-btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

/* ── Button Spinner ── */
.otp-btn .btn-spinner {
    display: none;
    width: 18px;
    height: 18px;
    border: 2.5px solid rgba(255, 255, 255, 0.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: auth-spin 0.7s linear infinite;
    flex-shrink: 0;
}

.otp-btn.loading .btn-spinner {
    display: inline-block;
}

.otp-btn.loading .btn-label {
    opacity: 1;
}

@keyframes auth-spin {
    to { transform: rotate(360deg); }
}

/* ── Inline Messages ── */
.otp-error-msg {
    color: #dc3545 !important;
    font-size: 13px;
    margin-top: 6px;
    min-height: 18px;
}

.otp-success-msg {
    color: #198754 !important;
    font-size: 13px;
    margin-top: 6px;
}

.otp-sent-info {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 8px;
    color: #166534;
    font-size: 14px;
    padding: 10px 14px;
    margin-bottom: 18px;
}

/* ǽ??'ǽ??' Resend Area ǽ??'ǽ??' */
.resend-area {
    font-size: 13px;
    color: #888;
    margin-top: 12px;
    text-align: center;
}

.resend-area a {
    color: #000;
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
}

.resend-area a.disabled {
    color: #aaa;
    cursor: not-allowed;
    pointer-events: none;
}

/* ǽ??'ǽ??' Success Panel ǽ??'ǽ??' */
.auth-success-panel {
    text-align: center;
    padding: 20px 0;
}

.auth-success-icon {
    font-size: 52px;
    color: #198754;
    margin-bottom: 14px;
}

.auth-success-panel h5 {
    font-size: 20px;
    font-weight: 700;
    color: #111;
    margin-bottom: 8px;
}

.auth-success-panel p {
    color: #888;
    font-size: 14px;
}

/* ǽ??'ǽ??' Footer Links ǽ??'ǽ??' */
.login-footer-links {
    margin-top: 16px;
    font-size: 13px;
    color: #888;
    text-align: center;
}

.login-footer-links a {
    color: #000;
    font-weight: 600;
    text-decoration: none;
}

.login-footer-links a:hover {
    text-decoration: underline;
}

/* ǽ??'ǽ??' Panels (hidden by default via JS) ǽ??'ǽ??' */
#otpPanel,
#successPanel {
    display: none;
}
/* ---- Split Login Layout ---- */
.split-login-section { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 30px 15px 40px 15px; background: #f8f9fa; }
.split-login-card { background: #fff; border-radius: 24px; box-shadow: 0 10px 40px rgba(0,0,0,0.05); overflow: hidden; width: 500px; max-width: 1000px; display: flex; }
.split-left { flex: 1; padding: 20px; }
.split-left-inner { background: url('https://images.unsplash.com/photo-1512428559087-560fa5ceab42?auto=format&fit=crop&q=80&w=2070&ixlib=rb-4.0.3') center/cover no-repeat; height: 100%; border-radius: 20px; padding: 60px 40px; position: relative; color: white; display: flex; flex-direction: column; justify-content: center; min-height: 500px; }
.split-left-inner::before { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0, 0, 0, 0.3); border-radius: 20px; z-index: 1; }
.split-left-content { position: relative; z-index: 2; }
.split-left h2 { font-size: 36px; font-weight: 800; margin-bottom: 20px; line-height: 1.2; }
.split-left p { font-size: 16px; opacity: 0.9; max-width: 80%; line-height: 1.5; }
.split-right { flex: 1; padding: 60px 50px; display: flex; flex-direction: column; justify-content: center; }
@media(max-width: 768px) { .split-login-card { flex-direction: column; } .split-left { padding: 10px; } .split-left-inner { min-height: 250px; padding: 30px 20px; } .split-left h2 { font-size: 24px; } .split-right { padding: 40px 20px; } }
.auth-heading-main { font-size: 28px; font-weight: 800; color: #111; margin-bottom: 8px; text-align: center; }
.auth-subheading { color: #666; font-size: 14px; text-align: center; margin-bottom: 30px; }
.form-control-pill { border-radius: 50px !important; padding: 12px 20px !important; font-size: 14px !important; border-color: #ddd !important; }
.form-control-pill:focus { border-color: #000 !important; box-shadow: none !important; }
.btn-pill { border-radius: 50px; padding: 12px 20px; font-weight: 600; width: 100%; transition: all 0.3s; }
.btn-primary-auth { background: #111 !important; color: #fff !important; border: none !important; }
.btn-primary-auth:hover { background: #333 !important; color: #fff !important; }
.btn-outline-auth { background: transparent; border: 1px solid #111; color: #111; display: flex; align-items: center; justify-content: center; gap: 10px; }
.btn-outline-auth:hover { background: #f8f9fa; color: #111; }
.auth-divider { display: flex; align-items: center; text-align: center; margin: 10px 0; color: #aaa; font-size: 12px; font-weight: 600; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; border-bottom: 1px solid #eee; }
.auth-divider:not(:empty)::before { margin-right: .5em; }
.auth-divider:not(:empty)::after { margin-left: .5em; }
.auth-footer-link { text-align: center; margin-top: 25px; font-size: 13px; color: #666; }
.auth-footer-link a { color: #111; font-weight: 700; text-decoration: none; }
.auth-options { display: flex; justify-content: space-between; align-items: center; font-size: 13px; margin-bottom: 15px; margin-top: 10px; }
.auth-options a { color: #111; font-weight: 600; text-decoration: none; }
.form-check-label { color: #666; }
#passwordLoginPanel { display: block; }
#otpLoginPanel { display: none; }
