/* ========================================
   Auth Page - Professional Styles
   ======================================== */

:root {
    /* Dark Mode Colors */
    --bg-primary: #0a0a0f;
    --bg-secondary: #15151f;
    --bg-tertiary: #1a1a2e;
    --bg-card: #1e1e2e;

    /* Neon Colors */
    --neon-blue: #00d4ff;
    --neon-cyan: #0ff;
    --neon-glow: rgba(0, 212, 255, 0.5);

    /* Text Colors */
    --text-primary: #ffffff;
    --text-secondary: #b4b4c4;
    --text-muted: #7a7a8a;

    /* Border */
    --border-color: #2a2a3e;
    --border-glow: rgba(0, 212, 255, 0.3);

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
}

/* Base Auth Page */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    background: var(--bg-primary);
}

/* Background Effects */
.auth-background {
    position: fixed;
    inset: 0;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}

.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.4;
    animation: authFloat 10s ease-in-out infinite;
}

.glow-orb-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.4), transparent);
    top: -10%;
    left: -5%;
    animation-delay: 0s;
}

.glow-orb-2 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 153, 204, 0.3), transparent);
    bottom: -15%;
    right: -10%;
    animation-delay: 5s;
}

.glow-orb-3 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.2), transparent);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: 2.5s;
}

.grid-pattern {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 212, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 212, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
}

@keyframes authFloat {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(30px, -30px) scale(1.05);
    }

    66% {
        transform: translate(-20px, 20px) scale(0.95);
    }
}

/* Auth Wrapper - Split Layout */
.auth-wrapper {
    display: flex;
    width: 100%;
    min-height: 100vh;
    position: relative;
    z-index: 1;
}

/* Left Side - Branding */
.auth-branding {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 40px 60px;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.05), rgba(0, 0, 0, 0.3));
    border-right: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.auth-branding::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%2300d4ff' fill-opacity='0.02'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.brand-logo {
    display: inline-block;
    position: relative;
    z-index: 1;
}

.brand-logo img {
    height: 45px;
    width: auto;
}

.branding-content {
    position: relative;
    z-index: 1;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 40px 0;
}

.branding-title {
    font-size: 38px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.branding-title .gradient-text {
    display: block;
    background: linear-gradient(135deg, var(--neon-blue), var(--neon-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.branding-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 40px;
    line-height: 1.6;
}

/* Feature Highlights */
.feature-highlights {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.highlight-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.highlight-icon {
    width: 40px;
    height: 40px;
    background: rgba(0, 212, 255, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.highlight-icon svg {
    stroke: var(--neon-blue);
}

.highlight-icon.success {
    background: rgba(16, 185, 129, 0.1);
}

.highlight-icon.success svg {
    stroke: #10b981;
}

.highlight-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.highlight-text strong {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 15px;
}

.highlight-text span {
    color: var(--text-muted);
    font-size: 13px;
}

/* Branding Stats */
.branding-stats {
    display: flex;
    gap: 20px;
    position: relative;
    z-index: 1;
}

.stat-badge {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 15px 20px;
    background: rgba(0, 212, 255, 0.05);
    border: 1px solid rgba(0, 212, 255, 0.1);
    border-radius: 10px;
}

.stat-badge .stat-value {
    font-size: 20px;
    font-weight: 700;
    color: var(--neon-blue);
}

.stat-badge .stat-text {
    font-size: 12px;
    color: var(--text-muted);
}

/* Branding Testimonial */
.branding-testimonial {
    position: relative;
    z-index: 1;
    margin-top: 30px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 12px;
}

.testimonial-quote {
    position: relative;
    margin-bottom: 15px;
}

.testimonial-quote svg {
    position: absolute;
    top: -5px;
    left: -5px;
    opacity: 0.3;
    fill: var(--neon-blue);
}

.testimonial-quote p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
    font-style: italic;
    padding-left: 25px;
}

.testimonial-author-mini {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-avatar {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--neon-blue), #0099cc);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    color: white;
}

.author-info {
    display: flex;
    flex-direction: column;
}

.author-info strong {
    font-size: 13px;
    color: var(--text-primary);
}

.author-info span {
    font-size: 11px;
    color: var(--text-muted);
}

/* Right Side - Form Container */
.auth-form-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    overflow-y: auto;
}

.auth-form-wrapper {
    width: 100%;
    max-width: 420px;
}

.register-form-wrapper {
    max-width: 480px;
}

/* Auth Header */
.auth-header {
    margin-bottom: 30px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    margin-bottom: 20px;
    transition: var(--transition-fast);
}

.back-link:hover {
    color: var(--neon-blue);
}

.back-link svg {
    stroke: currentColor;
}

.mobile-only {
    display: none;
}

.auth-title-group {
    text-align: left;
}

.auth-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.auth-subtitle {
    color: var(--text-secondary);
    font-size: 15px;
}

/* Auth Alert */
.auth-alert {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 14px;
}

.auth-alert-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #f87171;
}

.auth-alert-error svg {
    stroke: #f87171;
}

.auth-alert-success {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    color: #10b981;
}

.auth-alert-success svg {
    stroke: #10b981;
}

/* Auth Form */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 4px;
}

.required {
    color: #f87171;
}

.label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.forgot-link {
    font-size: 13px;
    color: var(--neon-blue);
    text-decoration: none;
    transition: var(--transition-fast);
}

.forgot-link:hover {
    text-decoration: underline;
}

/* Input Wrapper */
.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 14px;
    stroke: var(--text-muted);
    pointer-events: none;
    transition: var(--transition-fast);
    z-index: 1;
}

.input-wrapper.focused .input-icon,
.input-wrapper:focus-within .input-icon {
    stroke: var(--neon-blue);
}

.input-wrapper input,
.input-wrapper select {
    width: 100%;
    padding: 14px 14px 14px 46px;
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 15px;
    font-family: 'Inter', sans-serif;
    transition: var(--transition-normal);
    outline: none;
}

.input-wrapper input:focus,
.input-wrapper select:focus {
    border-color: var(--neon-blue);
    box-shadow: 0 0 0 4px rgba(0, 212, 255, 0.1);
}

.input-wrapper input::placeholder {
    color: var(--text-muted);
}

.input-wrapper.error input {
    border-color: #ef4444;
}

.input-hint {
    font-size: 12px;
    color: var(--text-muted);
}

/* Toggle Password */
.toggle-password {
    position: absolute;
    right: 14px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
    z-index: 1;
}

.toggle-password svg {
    stroke: var(--text-muted);
}

.toggle-password:hover svg {
    stroke: var(--neon-blue);
}

/* Checkbox */
.form-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.checkbox-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    user-select: none;
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.checkbox-wrapper input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.custom-checkbox {
    width: 20px;
    height: 20px;
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: 5px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
    margin-top: 1px;
}

.custom-checkbox svg {
    stroke: transparent;
    transition: var(--transition-fast);
}

.checkbox-wrapper:hover .custom-checkbox {
    border-color: var(--neon-blue);
}

.checkbox-wrapper input[type="checkbox"]:checked~.custom-checkbox {
    background: var(--neon-blue);
    border-color: var(--neon-blue);
}

.checkbox-wrapper input[type="checkbox"]:checked~.custom-checkbox svg {
    stroke: white;
}

.checkbox-label {
    flex: 1;
}

.terms-options {
    margin-top: 10px;
}

/* Button Styles */
.btn-glow {
    position: relative;
    overflow: hidden;
}

.btn-glow::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: 0.5s;
}

.btn-glow:hover::before {
    left: 100%;
}

.btn-text,
.btn-loader,
.btn-arrow {
    display: inline-flex;
    align-items: center;
}

.btn-arrow {
    margin-left: 8px;
    transition: var(--transition-fast);
}

.btn:hover .btn-arrow {
    transform: translateX(4px);
}

.spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Social Login */
.social-login {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 14px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-normal);
}

.social-btn:hover:not(:disabled) {
    border-color: var(--neon-blue);
    color: var(--text-primary);
}

.social-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Auth Divider */
.auth-divider {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 25px 0;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-color);
}

.auth-divider span {
    color: var(--text-muted);
    font-size: 13px;
}

/* Auth Footer */
.auth-footer {
    text-align: center;
    margin-top: 10px;
}

.auth-footer p {
    color: var(--text-secondary);
    font-size: 14px;
}

.link {
    color: var(--neon-blue);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition-fast);
}

.link:hover {
    text-decoration: underline;
}

/* Security Badge */
.auth-security-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 12px;
}

.auth-security-badge svg {
    stroke: var(--neon-blue);
}

/* Register Steps */
.register-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
    padding-bottom: 25px;
    border-bottom: 1px solid var(--border-color);
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.step-num {
    width: 32px;
    height: 32px;
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    transition: var(--transition-normal);
}

.step-label {
    font-size: 12px;
    color: var(--text-muted);
    transition: var(--transition-normal);
}

.step.active .step-num {
    background: var(--neon-blue);
    border-color: var(--neon-blue);
    color: white;
}

.step.active .step-label {
    color: var(--neon-blue);
}

.step.completed .step-num {
    background: #10b981;
    border-color: #10b981;
    color: white;
}

.step.completed .step-label {
    color: #10b981;
}

.step-line {
    width: 40px;
    height: 2px;
    background: var(--border-color);
    margin-bottom: 20px;
}

/* Form Steps */
.form-step {
    display: none;
}

.form-step.active {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-buttons {
    display: flex;
    gap: 12px;
    margin-top: 10px;
}

.form-buttons .btn {
    flex: 1;
}

.btn-secondary {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
}

.btn-secondary:hover {
    border-color: var(--neon-blue);
    color: var(--text-primary);
}

/* Package Selector - Mini Compact Version */
.package-selector-mini {
    display: flex;
    gap: 8px;
}

.package-mini-option {
    flex: 1;
    cursor: pointer;
}

.package-mini-option input {
    display: none;
}

.package-mini {
    padding: 12px 8px;
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: 10px;
    transition: var(--transition-normal);
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-height: 70px;
}

.package-mini:hover {
    border-color: rgba(0, 212, 255, 0.5);
}

.package-mini.popular {
    border-color: var(--neon-blue);
}

.package-mini.demo {
    border-color: #10b981;
}

.mini-badge {
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--neon-blue);
    color: white;
    font-size: 8px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 10px;
    text-transform: uppercase;
    white-space: nowrap;
}

.package-mini.demo .mini-badge {
    background: #10b981;
}

.package-mini-option input:checked+.package-mini {
    border-color: var(--neon-blue);
    background: rgba(0, 212, 255, 0.08);
}

.package-mini-option input:checked+.package-mini.demo {
    border-color: #10b981;
    background: rgba(16, 185, 129, 0.08);
}

.mini-name {
    font-weight: 700;
    color: var(--text-primary);
    font-size: 13px;
    margin-top: 4px;
}

.mini-price {
    font-weight: 700;
    color: var(--neon-blue);
    font-size: 11px;
    margin-top: 2px;
}

.mini-price small {
    font-size: 9px;
    font-weight: 400;
    color: var(--text-muted);
}

.mini-desc {
    font-size: 9px;
    color: var(--text-muted);
    margin-top: 2px;
}

/* Legacy Package Selector */
.package-selector {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.package-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.package-desc {
    font-size: 12px;
    color: var(--text-muted);
}

/* Password Strength */
.password-strength {
    margin-top: 8px;
}

.strength-bar {
    height: 4px;
    background: var(--border-color);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 6px;
}

.strength-fill {
    height: 100%;
    width: 0;
    border-radius: 2px;
    transition: width 0.3s, background 0.3s;
}

.strength-fill.weak {
    background: #ef4444;
}

.strength-fill.medium {
    background: #f59e0b;
}

.strength-fill.strong {
    background: #10b981;
}

.strength-text {
    font-size: 11px;
    color: var(--text-muted);
}

/* Responsive */
@media (max-width: 1024px) {
    .auth-branding {
        display: none;
    }

    .auth-form-container {
        padding: 30px 20px;
    }

    .mobile-only {
        display: inline-flex;
    }
}

@media (max-width: 768px) {
    .auth-form-wrapper {
        max-width: 100%;
    }

    .auth-title {
        font-size: 24px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .register-steps {
        gap: 5px;
    }

    .step-line {
        width: 25px;
    }

    .step-label {
        font-size: 10px;
    }

    .package-selector-mini {
        gap: 6px;
    }

    .package-mini {
        padding: 10px 6px;
        min-height: 65px;
    }

    .mini-name {
        font-size: 12px;
    }

    .mini-price {
        font-size: 10px;
    }

    .mini-badge {
        font-size: 7px;
        padding: 2px 6px;
    }
}

@media (max-width: 480px) {
    .auth-form-container {
        padding: 20px 15px;
    }

    .auth-title {
        font-size: 22px;
    }

    .auth-subtitle {
        font-size: 14px;
    }

    .form-buttons {
        flex-direction: column;
    }

    .form-buttons .btn {
        width: 100%;
    }

    .package-selector-mini {
        flex-direction: row;
        gap: 6px;
    }

    .package-mini-option {
        flex: 1;
        width: auto;
    }

    .package-mini {
        min-height: 60px;
    }
}