/* Authentication Pages CSS - Glass Blue Transparent Apple Style */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #1f1038;
    --secondary-color: #c6c7c7;
    --accent-color: #d6d7d6;
    --success-color: #c6c7c7;
    --warning-color: #d6d7d6;
    --error-color: #1f1038;
    --glass-bg: rgba(31, 16, 56, 0.1);
    --glass-bg-dark: rgba(31, 16, 56, 0.3);
    --glass-border: rgba(31, 16, 56, 0.2);
    --glass-shadow: rgba(0, 0, 0, 0.1);
    --text-primary: #d6d7d6;
    --text-secondary: #c6c7c7;
    --text-muted: rgba(214, 215, 214, 0.6);
    --dark-bg: rgba(31, 16, 56, 0.8);
    --darker-bg: rgba(31, 16, 56, 0.9);
    --blur-strength: 20px;
    --border-radius: 16px;
    --border-radius-small: 8px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: linear-gradient(135deg, #1f1038 0%, #0a0a0a 50%, #1f1038 100%) !important;
    min-height: 100vh;
    overflow-x: hidden;
}

#vanta-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.4;
    mask: radial-gradient(circle at center, rgba(255,255,255,1) 40%, rgba(255,255,255,0.6) 70%, rgba(255,255,255,0.2) 100%);
    -webkit-mask: radial-gradient(circle at center, rgba(255,255,255,1) 40%, rgba(255,255,255,0.6) 70%, rgba(255,255,255,0.2) 100%);
}

/* Navigation */
.auth-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1rem 0;
    backdrop-filter: blur(var(--blur-strength));
    -webkit-backdrop-filter: blur(var(--blur-strength));
    background: rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.nav-brand:hover {
    opacity: 0.8;
}

.nav-brand img {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    flex-shrink: 0;
    object-fit: contain;
    display: block;
}

.nav-brand h1,
.nav-brand h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    transition: color 0.2s ease;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--text-primary);
}

/* Glass Buttons */
.glass-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    background: var(--glass-bg);
    backdrop-filter: blur(var(--blur-strength));
    -webkit-backdrop-filter: blur(var(--blur-strength));
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.875rem;
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.glass-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.glass-btn:hover::before {
    left: 100%;
}

.glass-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 122, 255, 0.3);
}

.glass-btn:active {
    transform: translateY(0);
    box-shadow: 0 4px 20px rgba(0, 122, 255, 0.2);
}

.glass-btn.small {
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
}

.glass-btn.large {
    padding: 1rem 2rem;
    font-size: 1rem;
}

.glass-btn.primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
    box-shadow: 0 4px 20px rgba(0, 122, 255, 0.3);
}

.glass-btn.primary:hover {
    background: linear-gradient(135deg, #0056CC, #4AA3F0);
    box-shadow: 0 8px 30px rgba(0, 122, 255, 0.4);
}

/* Auth Container */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8rem 2rem 4rem;
    gap: 4rem;
}

.auth-container:has(.auth-sidebar:empty) {
    justify-content: center;
}

.auth-card {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--blur-strength));
    -webkit-backdrop-filter: blur(var(--blur-strength));
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    padding: 3rem;
    width: 100%;
    max-width: 480px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #ffffff !important;
}

.auth-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* Alerts */
.alert {
    padding: 1rem 1.5rem;
    border-radius: var(--border-radius-small);
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 500;
}

.alert-error {
    background: rgba(255, 59, 48, 0.1);
    border: 1px solid rgba(255, 59, 48, 0.3);
    color: #FF6B6B;
}

.alert-success {
    background: rgba(52, 199, 89, 0.1);
    border: 1px solid rgba(52, 199, 89, 0.3);
    color: #51CF66;
}

/* Form Styles */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
}

.form-group label {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.input-group i {
    position: absolute;
    left: 1rem;
    color: var(--text-secondary);
    font-size: 1rem;
    z-index: 1;
}

.input-group input {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-small);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.input-group.no-icon input {
    padding-left: 1rem;
}

.input-group.bright input {
    background: #f5f6ff;
    color: #1f1038;
    border-color: rgba(255, 255, 255, 0.6);
    box-shadow: inset 0 0 0 1px rgba(31, 16, 56, 0.1);
}

.input-group.bright input::placeholder {
    color: rgba(31, 16, 56, 0.6);
}

.input-group.bright input:focus {
    border-color: #4a0eff;
    box-shadow: 0 0 0 3px rgba(74, 14, 255, 0.2);
}

.input-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.2);
}

.input-group input::placeholder {
    color: var(--text-muted);
}

.form-help {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

.verification-row {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.verification-row input {
    flex: 1;
    height: 48px;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
    color: var(--text-primary);
    padding: 0 1rem;
}

.verification-row input:focus {
    outline: none;
    border-color: var(--secondary-color);
}

.verification-group #verificationStatus {
    display: block;
}

/* Form Options */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 1.5rem 0;
}

.form-options.terms-checkbox {
    justify-content: flex-start;
    margin: 1.5rem 0;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.checkbox-label .terms-text {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.checkbox-label .terms-text a {
    color: var(--secondary-color);
    text-decoration: underline;
    font-weight: 500;
}

.checkbox-label .terms-text a:hover {
    color: var(--text-primary);
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    min-width: 20px;
    min-height: 20px;
    border: 2px solid var(--glass-border);
    border-radius: 4px;
    position: relative;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    color: white;
    font-size: 14px;
    font-weight: bold;
    line-height: 1;
}

.forgot-link {
    color: var(--secondary-color);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
    white-space: nowrap;
    opacity: 1;
    visibility: visible;
}

.forgot-link:hover {
    color: var(--text-primary);
    text-decoration: underline;
}

/* Plan Selector */
.plan-selector {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.plan-option {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-small);
    cursor: pointer;
    transition: var(--transition);
}

.plan-option:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}

.plan-option.selected {
    background: rgba(0, 122, 255, 0.1);
    border-color: var(--primary-color);
}

.plan-option input[type="radio"] {
    display: none;
}

.plan-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.plan-name {
    font-weight: 600;
    color: var(--text-primary);
}

.plan-price {
    font-weight: 700;
    color: var(--primary-color);
}

/* Auth Footer */
.auth-footer {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--glass-border);
}

.auth-footer p {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.auth-link {
    color: #ffffff;
    text-decoration: underline;
    font-weight: 600;
    transition: var(--transition);
}

.auth-link:hover {
    color: var(--text-primary);
}

/* Auth Sidebar */
.auth-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 320px;
}

@media (max-width: 1024px) {
    .auth-sidebar {
        display: none;
    }
}

.feature-card,
.plan-preview {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--blur-strength));
    -webkit-backdrop-filter: blur(var(--blur-strength));
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: center;
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    margin: 0 auto 1rem;
}

.feature-image {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    overflow: hidden;
}

.feature-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.feature-image .image-placeholder {
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.75rem;
}

.feature-card:has(.feature-image) .feature-icon {
    display: none;
}

.feature-card h3,
.plan-preview h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.plan-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.plan-features {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.feature-item i {
    color: var(--success-color);
    font-size: 0.8rem;
}

.trial-notice {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem;
    background: rgba(52, 199, 89, 0.1);
    border: 1px solid rgba(52, 199, 89, 0.3);
    border-radius: var(--border-radius-small);
    font-size: 0.875rem;
    color: var(--success-color);
    font-weight: 500;
}

/* Responsive Design */
@media (min-width: 1024px) {
    .auth-sidebar {
        display: flex;
    }
}

@media (max-width: 768px) {
    .auth-container {
        flex-direction: column;
        gap: 2rem;
        padding: 6rem 1rem 2rem;
        align-items: center;
        justify-content: center;
    }

    .auth-card {
        padding: 2rem;
        max-width: 100%;
        margin: 0 auto;
        text-align: center;
    }

    .auth-header {
        text-align: center !important;
    }

    .auth-header h1 {
        font-size: 2rem;
        text-align: center;
    }

    .auth-header p {
        text-align: center;
    }

    .form-group {
        text-align: left;
    }

    .form-group label {
        text-align: left;
    }

    .input-group {
        width: 100%;
    }

    .input-group input {
        width: 100%;
    }

    .glass-btn {
        width: 100%;
        justify-content: center;
        margin: 0 auto;
    }

    .plan-selector {
        gap: 0.5rem;
        justify-content: center;
    }

    .plan-option {
        padding: 0.75rem;
    }

    .form-options {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        text-align: center;
    }

    .checkbox-label {
        justify-content: center;
    }

    .auth-footer {
        text-align: center;
    }

    .auth-footer p {
        text-align: center;
    }

    .captcha-container {
        display: flex !important;
        justify-content: center;
        width: 100%;
        min-height: 65px;
        overflow: visible;
        position: relative;
        z-index: 10;
    }

    .cf-turnstile {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 auto !important;
        transform: scale(1) !important;
        overflow: visible !important;
        position: relative !important;
        z-index: 10 !important;
    }

    .nav-container {
        padding: 0 1rem;
    }

    .nav-brand {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .auth-container {
        padding: 5rem 0.75rem 1.5rem;
    }

    .auth-card {
        padding: 1.5rem;
        margin: 0 auto;
        width: 100%;
        max-width: 100%;
    }

    .auth-header {
        text-align: center !important;
        margin-bottom: 1.5rem;
    }

    .auth-header h1 {
        font-size: 1.75rem;
        text-align: center;
    }

    .auth-header p {
        font-size: 0.95rem;
        text-align: center;
    }

    .form-group {
        text-align: left;
        margin-bottom: 1.25rem;
    }

    .form-group label {
        text-align: left;
        display: block;
        margin-bottom: 0.5rem;
    }

    .input-group {
        width: 100%;
        margin: 0 auto;
    }

    .input-group input {
        padding: 0.875rem 0.875rem 0.875rem 2.75rem;
        width: 100%;
    }

    .input-group i {
        left: 0.75rem;
    }

    .input-group.bright.no-icon input {
        padding: 0.875rem;
        text-align: left;
    }

    .glass-btn {
        width: 100%;
        padding: 1rem;
        justify-content: center;
        margin: 1.5rem auto 0;
    }

    .form-options {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
        text-align: center;
        width: 100%;
    }

    .checkbox-label {
        justify-content: center;
        width: 100%;
    }

    .auth-footer {
        text-align: center;
        margin-top: 1.5rem;
    }

    .auth-footer p {
        text-align: center;
    }

    .captcha-container {
        display: flex !important;
        justify-content: center;
        width: 100%;
        margin: 1rem auto;
        padding: 0.5rem;
        min-height: 65px;
        overflow: visible;
    }

    .cf-turnstile {
        display: block !important;
        width: 100% !important;
        max-width: 300px !important;
        margin: 0 auto !important;
        transform: scale(1) !important;
        overflow: visible !important;
    }

    .cf-turnstile iframe {
        width: 100% !important;
        max-width: 300px !important;
        min-width: 300px !important;
    }

    .alert {
        text-align: left;
        width: 100%;
    }

    .nav-container {
        padding: 0 0.75rem;
    }

    .nav-brand {
        justify-content: center;
    }

    .nav-brand h1 {
        font-size: 1.25rem !important;
    }

    .nav-brand span {
        font-size: 0.65rem !important;
    }

    .nav-brand img {
        height: 30px !important;
        max-width: 40px !important;
    }
}