﻿.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-primary);
    padding: 2rem;
}

.auth-container {
    width: 100%;
    max-width: 450px;
    background: transparent;
    padding: 2rem;
}

.auth-logo {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

.auth-logo-img {
    width: 64px;
    height: 64px;
    object-fit: contain;
}

.auth-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.auth-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 2rem 0;
    text-align: center;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.auth-form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.auth-form-label {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
}

.auth-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.auth-input-icon {
    position: absolute;
    left: 1rem;
    color: var(--text-tertiary);
    font-size: 1rem;
    z-index: 1;
    pointer-events: none;
}

.auth-input-prefix {
    position: absolute;
    left: 2.75rem;
    color: var(--text-tertiary);
    font-size: 1rem;
    z-index: 1;
    pointer-events: none;
}

.auth-form-input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.75rem;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.2s;
}

.auth-form-input-prefixed {
    padding-left: 5.5rem;
}

.auth-form-input:focus {
    outline: none;
    border-color: var(--accent);
    background: #0f0f0f;
}

.auth-form-input::placeholder {
    color: var(--text-tertiary);
}

.auth-password-toggle {
    position: absolute;
    right: 1rem;
    background: none;
    border: none;
    color: var(--text-tertiary);
    cursor: pointer;
    padding: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    transition: color 0.2s;
}

.auth-password-toggle:hover {
    color: var(--text-primary);
}

.auth-forgot-password {
    display: flex;
    justify-content: flex-end;
    margin-top: 0.5rem;
}

.auth-forgot-link {
    color: var(--text-secondary);
    font-size: 0.875rem;
    text-decoration: none;
    transition: color 0.2s;
}

.auth-forgot-link:hover {
    color: var(--text-primary);
}

.auth-checkbox-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.auth-checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--accent);
}

.auth-checkbox-label {
    color: var(--text-primary);
    font-size: 0.9rem;
    cursor: pointer;
    user-select: none;
}

.auth-switch {
    text-align: center;
    margin-top: 1.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.auth-switch-text {
    margin-right: 0.5rem;
}

.auth-switch-link {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.2s;
}

.auth-switch-link:hover {
    opacity: 0.8;
}

.auth-form-hint {
    color: var(--text-tertiary);
    font-size: 0.85rem;
    margin-top: 0.25rem;
}

.auth-verification {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
}

.auth-verification-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.auth-verification-spinner {
    display: flex;
    gap: 0.25rem;
}

.auth-spinner-dot {
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: 50%;
    animation: pulse 1.4s ease-in-out infinite;
}

.auth-spinner-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.auth-spinner-dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.3;
        transform: scale(0.8);
    }
    50% {
        opacity: 1;
        transform: scale(1);
    }
}

.auth-verification-text {
    color: var(--text-primary);
    font-size: 0.9rem;
}

.auth-cloudflare {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.25rem;
}

.auth-cloudflare-logo {
    font-size: 0.75rem;
    font-weight: 700;
    color: #ff6600;
    letter-spacing: 1px;
}

.auth-cloudflare-links {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
}

.auth-cloudflare-link {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s;
}

.auth-cloudflare-link:hover {
    color: var(--text-primary);
}

.auth-cloudflare-separator {
    color: var(--text-tertiary);
}

.auth-recaptcha-wrapper {
    display: flex;
    justify-content: center;
    margin: 1rem 0;
    width: 100%;
}

.auth-recaptcha-wrapper .g-recaptcha {
    display: flex;
    justify-content: center;
}

.auth-submit-btn {
    width: 100%;
    padding: 1rem;
    background: #ffffff;
    color: #000000;
    border: 1px solid #ffffff;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 1rem;
}

.auth-submit-btn:hover:not(:disabled) {
    background: #f0f0f0;
    border-color: #f0f0f0;
}

.auth-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.auth-error {
    padding: 0.75rem;
    background: #2a1a1a;
    border: 1px solid #4a2a2a;
    border-radius: 8px;
    color: var(--error);
    font-size: 0.9rem;
}

.auth-legal {
    text-align: center;
    color: var(--text-tertiary);
    font-size: 0.85rem;
    margin: 0;
}

.auth-legal-link {
    color: var(--text-secondary);
    text-decoration: underline;
    transition: color 0.2s;
}

.auth-legal-link:hover {
    color: var(--text-primary);
}

@media (max-width: 480px) {
    .auth-container {
        padding: 1.5rem;
    }
    
    .auth-verification {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .auth-cloudflare {
        align-items: flex-start;
    }
}

