/* Auth Pages Styles */

.auth-section {
    min-height: calc(100vh - 80px);
    background: #0a0a0a;
    padding: 80px 0;
    display: flex;
    align-items: center;
}

.auth-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
    align-items: start;
}

/* Auth Card */
.auth-card {
    background: #1a1a1a;
    border: 1px solid rgba(255, 20, 148, 0.2);
    border-radius: 16px;
    padding: 48px;
    animation: fadeInUp 0.6s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;

        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.auth-header h1 {
    font-size: 2.5rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 12px;
    background: linear-gradient(135deg, #fff 0%, #FF1494 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.auth-header p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 1rem;
}

/* Form Styles */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 20, 148, 0.2);
    border-radius: 8px;
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #FF1494;
    background: rgba(255, 20, 148, 0.05);
    box-shadow: 0 0 0 3px rgba(255, 20, 148, 0.1);
}

.form-group input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

/* Password Input with Toggle */
.password-input {
    position: relative;
    display: flex;
    align-items: center;
}

.password-input input {
    padding-right: 48px;
}

.toggle-password {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease;
}

.toggle-password:hover {
    color: #FF1494;
}

.toggle-confirm-password {
    color: rgba(255, 255, 255, 0.6);
}

.password-hint {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8rem;
    margin-top: -4px;
}

/* Form Options */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #FF1494;
}

.checkbox-label a {
    color: #FF1494;
    text-decoration: none;
}

.checkbox-label a:hover {
    text-decoration: underline;
}

.auth-links {
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
}

.forgot-link {
    color: #FF1494;
    text-decoration: none;
    font-size: 0.9rem;
    transition: opacity 0.3s ease;
}

.forgot-link:hover {
    opacity: 0.8;
}

.admin-signin-toggle {
    background: none;
    border: 1px solid rgba(255, 20, 148, 0.3);
    color: #FF1494;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.admin-signin-toggle:hover {
    background: rgba(255, 20, 148, 0.1);
    border-color: #FF1494;
}

.admin-signin-toggle.active {
    background: #FF1494;
    color: white;
    border-color: #FF1494;
}

/* Admin OTP Field */
.admin-otp-group {
    animation: slideDown 0.3s ease;
}

.admin-otp-group.hidden {
    display: none !important;
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        max-height: 120px;
        transform: translateY(0);
    }
}

.admin-otp-group input {
    text-align: center;
    letter-spacing: 2px;
    font-family: 'Courier New', monospace;
    font-size: 1.1rem;
    font-weight: 600;
}

.admin-otp-group .form-help {
    color: rgba(255, 20, 148, 0.8);
    font-size: 0.8rem;
    margin-top: 6px;
    display: block;
}

/* Submit Button */
.btn-submit {
    width: 100%;
    padding: 16px;
    background: #FF1494;
    border: none;
    border-radius: 8px;
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 8px;
}

.btn-submit:hover {
    background: #ff69b4;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 20, 148, 0.3);
}

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

/* Divider */
.auth-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 32px 0;
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.9rem;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255, 20, 148, 0.2);
}

/* Social Auth */
.social-auth {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Google Sign-In Button Container */
#g_id_onload {
    margin-bottom: 12px;
}

.g_id_signin {
    margin-bottom: 12px;
}

/* Custom Google button styling */
.g_id_signin > div {
    width: 100% !important;
}

.g_id_signin iframe {
    width: 100% !important;
    border-radius: 8px !important;
}

.btn-social {
    width: 100%;
    padding: 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 20, 148, 0.2);
    border-radius: 8px;
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.3s ease;
}

.btn-social:hover {
    background: rgba(255, 20, 148, 0.1);
    border-color: #FF1494;
    transform: translateY(-2px);
}

/* Auth Footer */
.auth-footer {
    text-align: center;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 20, 148, 0.2);
}

.auth-footer p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
}

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

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

/* Auth Features Panel */
.auth-features {
    position: sticky;
    top: 120px;
}

.auth-features h2 {
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 32px;
}

.features-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.feature-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.feature-icon {
    width: 48px;
    height: 48px;
    background: rgba(255, 20, 148, 0.1);
    border: 1px solid rgba(255, 20, 148, 0.3);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feature-icon svg {
    stroke: #FF1494;
}

.feature-number {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #FF1494 0%, #ff69b4 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    flex-shrink: 0;
}

.feature-content h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 4px;
}

.feature-content p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Promo Banner */
.promo-banner {
    background: linear-gradient(135deg, rgba(255, 20, 148, 0.2) 0%, rgba(255, 105, 180, 0.1) 100%);
    border: 1px solid rgba(255, 20, 148, 0.3);
    border-radius: 12px;
    padding: 24px;
    margin-top: 32px;
    text-align: center;
}

.promo-banner h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
}

.promo-banner p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
}

.promo-banner strong {
    color: #FF1494;
    font-weight: 700;
}

/* Error Message */
.error-message {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 8px;
    padding: 12px 16px;
    color: #ef4444;
    font-size: 0.9rem;
    display: none;
    align-items: center;
    gap: 8px;
}

.error-message.show {
    display: flex;
}

/* Success Message */
.success-message {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 8px;
    padding: 12px 16px;
    color: #22c55e;
    font-size: 0.9rem;
    display: none;
    align-items: center;
    gap: 8px;
}

.success-message.show {
    display: flex;
}

/* Responsive */
@media (max-width: 1024px) {
    .auth-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .auth-features {
        position: static;
    }

    .auth-card {
        padding: 32px;
    }
}

@media (max-width: 768px) {
    .auth-section {
        padding: 40px 0;
    }

    .auth-card {
        padding: 24px;
    }

    .auth-header h1 {
        font-size: 2rem;
    }

    .auth-features h2 {
        font-size: 1.5rem;
    }

    .form-options {
        flex-direction: column;
        align-items: flex-start;
    }

    .promo-banner {
        padding: 20px;
    }
}

/* Screen reader only utility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

body.modal-open {
    overflow: hidden;
}

/* Admin OTP Modal */
.otp-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s ease;
    z-index: 1000;
}

.otp-modal-backdrop.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.otp-modal {
    width: min(420px, 100%);
    background: #101010;
    border: 1px solid rgba(255, 20, 148, 0.3);
    border-radius: 16px;
    padding: 32px;
    padding-top: 100px;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 0.35s ease;
}

/* Logo centered at top of OTP modal */
.otp-modal::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 80px;
    background-image: url('/img/icons/BOTZZZ773.logo.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    border-radius: 12px;
    filter: drop-shadow(0 4px 12px rgba(255, 20, 148, 0.3));
}

.otp-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    transition: all 0.2s ease;
}

.otp-modal-close:hover {
    background: rgba(255, 20, 148, 0.15);
    border-color: rgba(255, 20, 148, 0.6);
}

.otp-modal-header {
    text-align: center;
    margin-bottom: 24px;
}

.otp-modal-header h2 {
    font-size: 1.75rem;
    color: #fff;
    margin-bottom: 8px;
}

.otp-modal-header p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
}

.otp-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.otp-input-group input {
    width: 100%;
    padding: 18px;
    text-align: center;
    font-size: 1.5rem;
    letter-spacing: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 20, 148, 0.4);
    border-radius: 12px;
    color: #fff;
}

.otp-input-group input:focus {
    outline: none;
    border-color: #FF1494;
    box-shadow: 0 0 0 3px rgba(255, 20, 148, 0.15);
}

.otp-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

.otp-link {
    background: none;
    border: none;
    color: #FF1494;
    cursor: pointer;
    font-size: 0.9rem;
    padding: 0;
    text-decoration: underline;
    transition: opacity 0.2s ease;
}

.otp-link[disabled] {
    opacity: 0.4;
    cursor: not-allowed;
    text-decoration: none;
}

.otp-feedback {
    min-height: 22px;
    font-size: 0.9rem;
}

.otp-feedback.error {
    color: #ff6b6b;
}

.otp-feedback.success {
    color: #4ade80;
}

.otp-submit {
    margin-top: 8px;
}
