/**
 * Clerk Authentication Page Styles
 * 
 * Styles for the dedicated /clerk-auth/ page.
 * Works with theme header/footer for design continuity.
 */

/* Main container */
.clerk-auth-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
    padding: 40px 20px;
}

/* Content container */
.clerk-auth-container {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
}

/* Inner content wrapper */
.clerk-auth-content {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 40px;
    text-align: center;
}

/* Page title */
.clerk-auth-title {
    font-size: 28px;
    font-weight: 600;
    margin: 0 0 30px 0;
    color: #1e1e1e;
}

/* Clerk SignIn component container */
#clerk-sign-in {
    margin: 0 auto;
    min-height: 300px;
}

/* Loading state */
#clerk-sign-in:empty::before {
    content: '';
    display: block;
    width: 40px;
    height: 40px;
    margin: 80px auto;
    border: 3px solid #e0e0e0;
    border-top-color: #2271b1;
    border-radius: 50%;
    animation: clerk-spin 0.8s linear infinite;
}

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

/* Back link */
.clerk-auth-back-link {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.clerk-auth-back-link a {
    color: #666;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease;
}

.clerk-auth-back-link a:hover {
    color: #2271b1;
}

/* Error message styling */
.clerk-auth-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 6px;
    padding: 16px;
    margin-bottom: 20px;
    color: #dc2626;
    text-align: center;
}

.clerk-auth-error p {
    margin: 0 0 12px 0;
}

.clerk-auth-error button {
    background: #dc2626;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.2s ease;
}

.clerk-auth-error button:hover {
    background: #b91c1c;
}

.clerk-auth-error button:disabled {
    background: #999;
    cursor: not-allowed;
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .clerk-auth-content {
        background: #1e1e1e;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    }
    
    .clerk-auth-title {
        color: #f0f0f0;
    }
    
    .clerk-auth-back-link {
        border-top-color: #444;
    }
    
    .clerk-auth-back-link a {
        color: #aaa;
    }
    
    .clerk-auth-back-link a:hover {
        color: #72aee6;
    }
    
    #clerk-sign-in:empty::before {
        border-color: #444;
        border-top-color: #72aee6;
    }
}

/* Responsive adjustments */
@media screen and (max-width: 480px) {
    .clerk-auth-page {
        padding: 20px 15px;
        min-height: auto;
    }
    
    .clerk-auth-content {
        padding: 30px 20px;
        border-radius: 0;
        box-shadow: none;
        border: 1px solid #e0e0e0;
    }
    
    .clerk-auth-title {
        font-size: 24px;
        margin-bottom: 20px;
    }
}


