/* ==========================================================================
   QrBiteHub Authentication Pages - Dark Theme
   ========================================================================== */

/* CSS Variables for Auth Pages */
:root {
    /* Colors - Using unified primary #f58524 */
    --landing-primary: #f58524;
    --landing-primary-hover: #e07620;
    --landing-primary-10: rgba(245, 133, 36, 0.1);

    /* Backgrounds */
    --landing-bg-dark: #080808;
    --landing-bg-card: rgba(22, 22, 22, 0.8);

    /* Borders */
    --landing-border: rgba(255, 255, 255, 0.1);

    /* Text colors with opacity */
    --landing-text: #ffffff;
    --landing-text-70: rgba(255, 255, 255, 0.7);
    --landing-text-60: rgba(255, 255, 255, 0.6);
    --landing-text-40: rgba(255, 255, 255, 0.4);

    /* Border radius */
    --radius-xl: 1rem;
    --radius-md: 0.5rem;
    --radius-full: 9999px;

    /* Fonts */
    --font-manrope: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
}

.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--landing-bg-dark);
    padding: 1.5rem;
    font-family: var(--font-manrope);
}

.auth-container {
    width: 100%;
    max-width: 28rem;
}

.auth-card {
    background: var(--landing-bg-card);
    border: 1px solid var(--landing-border);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
}

.auth-logo {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

.auth-logo img {
    height: 2.5rem;
    width: auto;
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--landing-text);
    margin-bottom: 0.5rem;
}

.auth-subtitle {
    font-size: 0.875rem;
    color: var(--landing-text-60);
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.auth-field {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.auth-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--landing-text-70);
}

.auth-input {
    width: 100%;
    padding: 0.875rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--landing-border);
    border-radius: var(--radius-md);
    color: var(--landing-text);
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.2s ease;
}

.auth-input::placeholder {
    color: var(--landing-text-40);
}

.auth-input:focus {
    outline: none;
    border-color: var(--landing-primary);
    box-shadow: 0 0 0 3px var(--landing-primary-10);
}

.auth-input:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.auth-checkbox-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.auth-checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--landing-text-70);
    cursor: pointer;
}

.auth-checkbox {
    width: 1rem;
    height: 1rem;
    accent-color: var(--landing-primary);
}

.auth-forgot-link {
    font-size: 0.875rem;
    color: var(--landing-primary);
    text-decoration: none;
    transition: opacity 0.2s;
}

.auth-forgot-link:hover {
    opacity: 0.8;
}

.auth-submit {
    width: 100%;
    padding: 1rem;
    background: var(--landing-primary);
    color: var(--landing-bg-dark);
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.auth-submit:hover:not(:disabled) {
    background: var(--landing-primary-hover);
    transform: translateY(-1px);
}

.auth-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.auth-error {
    padding: 0.875rem 1rem;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: var(--radius-md);
    color: #f87171;
    font-size: 0.875rem;
    text-align: center;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1.5rem 0;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--landing-border);
}

.auth-divider span {
    font-size: 0.75rem;
    color: var(--landing-text-40);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.875rem;
    color: var(--landing-text-60);
}

.auth-footer a {
    color: var(--landing-primary);
    text-decoration: none;
    font-weight: 500;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* Loading spinner */
.auth-spinner {
    width: 1.25rem;
    height: 1.25rem;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Background decoration */
.auth-bg-gradient {
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at 30% 20%, rgba(245, 133, 36, 0.08) 0%, transparent 50%),
                radial-gradient(circle at 70% 80%, rgba(245, 133, 36, 0.05) 0%, transparent 40%);
    pointer-events: none;
    z-index: -1;
}
