/**
 * Authentication Components Styles
 */

/* Full-Screen Auth Landing Page */
.auth-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.auth-overlay.visible {
    opacity: 1;
    pointer-events: all;
}

/* Ensure body doesn't scroll when auth is visible */
body:has(.auth-overlay.visible) {
    overflow: hidden;
}

/* Auth Container (centered content) */
.auth-dialog {
    width: 100%;
    max-width: 480px;
    padding: 2rem;
    animation: authFadeIn 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes authFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* App Branding */
.auth-branding {
    text-align: center;
    margin-bottom: 3rem;
}

.auth-logo {
    margin-bottom: 1rem;
}

.auth-logo-img {
    width: 120px;
    height: 120px;
    filter: drop-shadow(0 0 20px rgba(128, 128, 128, 0.6)) drop-shadow(0 0 40px rgba(128, 128, 128, 0.4));
}

.auth-app-name {
    font-size: 48px;
    font-weight: 800;
    color: #fff;
    margin: 0;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
    letter-spacing: -1px;
}

/* Auth Card */
.auth-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2.5rem;
    backdrop-filter: blur(10px);
}

.auth-title {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 2rem 0;
    text-align: center;
}

/* Auth Content */
.auth-content {
    /* No padding - handled by auth-card */
}

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

/* Auth Form */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.auth-label {
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.5rem;
    display: block;
}

.auth-input {
    width: 100%;
    padding: 14px 16px;
    font-size: 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    color: #fff;
    transition: all 0.2s;
    font-family: inherit;
}

.auth-input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.1);
}

.auth-input:disabled {
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.4);
    cursor: not-allowed;
}

.auth-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

/* Checkbox */
.auth-checkbox-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.auth-checkbox {
    width: 20px;
    height: 20px;
    cursor: pointer;
    flex-shrink: 0;
}

.auth-checkbox:disabled {
    cursor: not-allowed;
}

.auth-checkbox-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    user-select: none;
}

/* Submit Button */
.auth-submit-button {
    width: 100%;
    padding: 16px;
    font-size: 17px;
    font-weight: 600;
    color: #000;
    background: #fff;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.auth-submit-button:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-1px);
}

.auth-submit-button:active:not(:disabled) {
    transform: translateY(0);
}

.auth-submit-button:disabled {
    background: rgba(255, 255, 255, 0.3);
    color: rgba(0, 0, 0, 0.5);
    cursor: not-allowed;
}

/* Auth Footer */
.auth-footer {
    margin-top: 1rem;
    text-align: center;
}

.auth-footer-text {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
}

/* Error Message */
.auth-error {
    padding: 12px 16px;
    background: rgba(255, 68, 68, 0.1);
    border: 1px solid rgba(255, 68, 68, 0.3);
    border-radius: 8px;
    color: #ff6b6b;
    font-size: 14px;
    text-align: center;
}

/* Success Message */
.auth-success {
    padding: 12px 16px;
    background: rgba(68, 170, 68, 0.1);
    border: 1px solid rgba(68, 170, 68, 0.3);
    border-radius: 8px;
    color: #51cf66;
    font-size: 14px;
    text-align: center;
}

/* Waiting for Verification */
.auth-waiting {
    text-align: center;
}

.auth-waiting-icon {
    font-size: 64px;
    margin-bottom: 1.5rem;
}

.auth-waiting-title {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 1rem 0;
}

.auth-waiting-text {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
    margin: 0 0 0.5rem 0;
    line-height: 1.5;
}

.auth-waiting-subtext {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
    margin: 0 0 2rem 0;
    line-height: 1.4;
}

.auth-waiting-spinner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    font-weight: 600;
}

/* Spinner Animation */
.spinner {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.2);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* Verification Page */
.verification-page {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.verification-container {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 3rem;
    max-width: 500px;
    width: 90%;
    backdrop-filter: blur(10px);
    text-align: center;
}

.verification-status {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.verification-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid rgba(255, 255, 255, 0.2);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.verification-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    font-weight: bold;
}

.verification-icon.success {
    background: rgba(68, 170, 68, 0.1);
    color: #51cf66;
}

.verification-icon.error {
    background: rgba(255, 68, 68, 0.1);
    color: #ff6b6b;
}

.verification-title {
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    margin: 0;
}

.verification-text {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

.verification-error {
    font-size: 15px;
    color: #ff6b6b;
    margin: 0;
}

.verification-success {
    font-size: 15px;
    color: #51cf66;
    margin: 0;
}

.verification-redirect {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
    font-style: italic;
}

.verification-button {
    margin-top: 1rem;
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 600;
    color: #000;
    background: #fff;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.verification-button:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-1px);
}

/* Mobile Responsive */
@media (max-width: 600px) {
    .auth-dialog {
        padding: 1.5rem;
    }

    .auth-logo-img {
        width: 90px;
        height: 90px;
    }

    .auth-app-name {
        font-size: 36px;
    }

    .auth-card {
        padding: 2rem;
    }

    .auth-title {
        font-size: 20px;
    }

    .verification-container {
        padding: 2rem;
    }

    .verification-title {
        font-size: 24px;
    }
}
