/* ====== Timer Request Access Page ======
 * Clean, premium split-screen design
 * Matching login.aspx aesthetic
 * Mobile-first approach
 */

/* === BASE === */
.raccess-page {
    margin: 0;
    padding: 0;
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
    min-height: 100vh;
    background: #f8fafc;
}

/* === LAYOUT === */
.raccess-wrapper {
    display: flex;
    min-height: 100vh;
}

/* === LEFT PANEL - BRANDING === */
.raccess-brand-panel {
    display: none;
    width: 45%;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    padding: 48px;
    position: relative;
    overflow: hidden;
}

/* Subtle pattern overlay */
.raccess-brand-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 20% 80%, rgba(139, 92, 246, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(59, 130, 246, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.brand-content {
    position: relative;
    z-index: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Logo */
.brand-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 48px;
}

.brand-logo img {
    width: 44px;
    height: 44px;
}

.brand-name {
    font-size: 28px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.5px;
}

/* Headline */
.brand-headline {
    font-size: 42px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.2;
    margin: 0 0 20px 0;
    letter-spacing: -1px;
}

.brand-subtext {
    font-size: 17px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    margin: 0 0 40px 0;
    max-width: 380px;
}

/* Feature Pills */
.brand-features {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 48px;
}

.feature-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 100px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.feature-pill:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.2);
}

.feature-pill i {
    font-size: 14px;
    color: #8b5cf6;
}

/* Stats */
.brand-stats {
    display: flex;
    align-items: center;
    gap: 24px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-number {
    font-size: 28px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.5px;
}

.stat-label {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 500;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(255, 255, 255, 0.15);
}

/* Brand Footer */
.brand-footer {
    position: absolute;
    bottom: 48px;
    left: 48px;
}

.brand-footer p {
    margin: 0;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
}

/* === RIGHT PANEL - FORM === */
.raccess-form-panel {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: #f8fafc;
}

.form-container {
    width: 100%;
    max-width: 420px;
}

/* Mobile Brand */
.mobile-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 32px;
}

.mobile-brand img {
    width: 36px;
    height: 36px;
}

.mobile-brand span {
    font-size: 24px;
    font-weight: 700;
    color: #0f172a;
}

/* === RACCESS CARD === */
.raccess-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 36px;
    box-shadow:
        0 1px 3px rgba(0, 0, 0, 0.04),
        0 4px 12px rgba(0, 0, 0, 0.04);
    border: 1px solid #e2e8f0;
    animation: slideUp 0.5s ease;
}

/* Card Header */
.card-header {
    text-align: center;
    margin-bottom: 28px;
}

.card-header h2 {
    font-size: 24px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 8px 0;
    letter-spacing: -0.5px;
}

.card-header p {
    font-size: 15px;
    color: #64748b;
    margin: 0;
}

/* === FORM FIELDS === */
.form-fields {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 14px;
    font-weight: 600;
    color: #334155;
}

.required {
    color: #ef4444;
}

/* Input Wrapper */
.input-wrapper {
    position: relative;
}

.form-input {
    width: 100%;
    padding: 14px 16px;
    font-family: inherit;
    font-size: 15px;
    color: #0f172a;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    outline: none;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.form-input::placeholder {
    color: #94a3b8;
}

.form-input:focus {
    border-color: #8b5cf6;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.form-input.error {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 80px;
}

/* Field Error */
.field-error {
    font-size: 13px;
    color: #ef4444;
    display: none;
}

.field-error.show {
    display: block;
}

/* === SUBMIT BUTTON === */
.btn-submit {
    width: 100%;
    padding: 14px 24px;
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    border: none;
    border-radius: 12px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 4px;
    position: relative;
}

.btn-submit:hover {
    background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
    box-shadow: 0 4px 16px rgba(139, 92, 246, 0.35);
    transform: translateY(-1px);
}

.btn-submit:active {
    transform: translateY(0);
}

.btn-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.btn-submit .btn-loader {
    display: none;
}

.btn-submit.loading .btn-text {
    display: none;
}

.btn-submit.loading .btn-loader {
    display: inline-block;
}

/* Form Message */
.form-message {
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 14px;
    display: none;
}

.form-message.show {
    display: block;
}

.form-message-error {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

/* === CARD FOOTER === */
.card-footer {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #f1f5f9;
    text-align: center;
}

.card-footer p {
    margin: 0;
    font-size: 14px;
    color: #64748b;
}

.card-footer a {
    color: #8b5cf6;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
}

.card-footer a:hover {
    color: #7c3aed;
}

/* === SUCCESS CARD === */
.success-card {
    text-align: center;
    padding: 48px 36px;
}

.success-icon {
    margin-bottom: 24px;
}

.success-icon i {
    font-size: 64px;
    color: #22c55e;
    animation: scaleIn 0.5s ease;
}

.success-title {
    font-size: 24px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 12px 0;
    letter-spacing: -0.5px;
}

.success-text {
    font-size: 15px;
    color: #64748b;
    line-height: 1.6;
    margin: 0 0 28px 0;
}

.success-text strong {
    color: #8b5cf6;
}

.success-actions {
    display: flex;
    justify-content: center;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 24px;
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
    box-shadow: 0 4px 16px rgba(139, 92, 246, 0.35);
    transform: translateY(-1px);
}

/* === LEGAL LINKS === */
.legal-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-top: 28px;
}

.legal-links a {
    font-size: 13px;
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.2s ease;
}

.legal-links a:hover {
    color: #64748b;
}

.legal-links .dot {
    width: 3px;
    height: 3px;
    background: #cbd5e1;
    border-radius: 50%;
}

/* === LOADING OVERLAY === */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.loading-overlay.show {
    display: flex;
}

.loading-content {
    text-align: center;
}

.loading-spinner {
    width: 44px;
    height: 44px;
    border: 3px solid #e2e8f0;
    border-top-color: #8b5cf6;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 16px;
}

.loading-content p {
    margin: 0;
    font-size: 15px;
    font-weight: 500;
    color: #334155;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* === TOAST NOTIFICATIONS === */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1001;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.timer-toast {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    padding: 14px 18px;
    animation: slideIn 0.3s ease;
    border-left: 4px solid #8b5cf6;
}

.timer-toast-error {
    border-left-color: #ef4444;
}

.timer-toast-success {
    border-left-color: #22c55e;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* === ANIMATIONS === */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.5);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.brand-content {
    animation: fadeIn 0.6s ease;
}

/* === RESPONSIVE === */

/* Tablet and up */
@media (min-width: 768px) {
    .raccess-form-panel {
        padding: 40px;
    }

    .raccess-card {
        padding: 44px;
    }

    .card-header h2 {
        font-size: 26px;
    }
}

/* Desktop */
@media (min-width: 1024px) {
    .raccess-brand-panel {
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .mobile-brand {
        display: none;
    }

    .raccess-form-panel {
        width: 55%;
        padding: 60px;
    }

    .form-container {
        max-width: 440px;
    }
}

/* Large Desktop */
@media (min-width: 1280px) {
    .brand-headline {
        font-size: 48px;
    }

    .raccess-brand-panel {
        padding: 64px;
    }

    .brand-footer {
        left: 64px;
        bottom: 64px;
    }
}

/* Very small screens */
@media (max-width: 480px) {
    .raccess-form-panel {
        padding: 16px;
    }

    .raccess-card {
        padding: 28px 24px;
        border-radius: 16px;
    }

    .card-header h2 {
        font-size: 22px;
    }

    .btn-submit,
    .form-input {
        padding: 12px 16px;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

/* High contrast */
@media (prefers-contrast: high) {
    .raccess-card {
        border: 2px solid #334155;
    }

    .form-input:focus {
        border-width: 2px;
    }
}
