/* Auth Pages - Premium Style */
.auth-body-bg {
    background: linear-gradient(135deg, var(--primary-600) 0%, var(--primary-800) 100%);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    overflow-y: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 0;
}

[data-theme="dark"] .auth-body-bg {
    background: linear-gradient(135deg, var(--neutral-900) 0%, var(--primary-900) 100%);
}

/* Background Animation */
.auth-bg-animation {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
    overflow: hidden;
    pointer-events: none;
}

.shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
    animation: float 20s infinite ease-in-out;
}

.shape-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    top: -300px;
    left: -300px;
    animation-delay: 0s;
}

.shape-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, transparent 70%);
    bottom: -200px;
    right: -200px;
    animation-delay: 5s;
}

.shape-3 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.25) 0%, transparent 70%);
    top: 50%;
    left: 10%;
    animation-delay: 10s;
}

.shape-4 {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, transparent 70%);
    top: 20%;
    right: 20%;
    animation-delay: 15s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }

    33% {
        transform: translate(30px, -30px) rotate(120deg);
    }

    66% {
        transform: translate(-20px, 20px) rotate(240deg);
    }
}

/* Auth Container */
.auth-container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Auth Card */
.auth-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-xl);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    position: relative;
    animation: slideInUp 0.6s ease-out;
}

[data-theme="dark"] .auth-card {
    background: rgba(23, 23, 23, 0.95);
    border-color: rgba(255, 255, 255, 0.1);
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-600), var(--primary-700), var(--primary-600));
    background-size: 200% 100%;
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% {
        background-position: -200% 0;
    }

    50% {
        background-position: 200% 0;
    }
}

/* Auth Header */
.auth-header {
    text-align: center;
    padding: 2.5rem 2rem 1.5rem;
    position: relative;
}

    .auth-header .auth-icon {
        width: 80px;
        height: 80px;
        background: linear-gradient(135deg, var(--primary-600), var(--primary-700));
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0 auto 1.5rem;
        position: relative;
        animation: pulse-icon 2s ease-in-out infinite;
    }

@keyframes pulse-icon {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.4);
    }

    50% {
        box-shadow: 0 0 0 20px rgba(99, 102, 241, 0);
    }
}

.auth-header .auth-icon i {
    font-size: 2.5rem;
    color: white;
}

.auth-header h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.auth-header p {
    color: var(--text-secondary);
    font-size: 1.0625rem;
    margin-bottom: 0;
    line-height: 1.5;
}

/* Auth Body */
.auth-body {
    padding: 0 2rem 2.5rem;
}

/* Form Styles for Auth */
.auth-form .form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.auth-form .form-label {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    font-size: 0.9375rem;
}

.auth-form .form-control {
    background: var(--bg-secondary);
    border: 2px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 1rem 1.25rem;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
    
}

    .auth-form .form-control:focus {
        border-color: var(--primary-600);
        box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1), 0 4px 12px rgba(0, 0, 0, 0.1);
        background: var(--bg-secondary);
    }

.input-group {
    box-shadow: 0 2px 4px rgba(30, 30, 30, 0.04);
}

.auth-form .input-group {
    position: relative;
    /*box-shadow: 0 2px 4px rgba(1, 1, 1, 0.04);
    border-radius: var(--radius-lg);*/
    overflow: hidden;
    
}

.auth-form .input-group-text {
    background: var(--bg-tertiary);
    border: 2px solid var(--border-light);
    border-right: none;
    color: var(--text-secondary);
    padding: 1rem 1.25rem;
    font-size: 1.125rem;
}

.auth-form .input-group .form-control {
    border-left: none;
    box-shadow: none;
}



.auth-form .input-group:focus-within .input-group-text {
    background: var(--primary-50);
    border-color: var(--primary-600);
    color: var(--primary-600);
}

[data-theme="dark"] .auth-form .input-group:focus-within .input-group-text {
    background: rgba(99, 102, 241, 0.1);
}

/* Password Toggle */
.password-toggle {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: var(--text-tertiary);
    transition: all 0.3s ease;
    z-index: 10;
    font-size: 1.125rem;
    padding: 0.5rem;
    border-radius: var(--radius-sm);
}

    .password-toggle:hover {
        color: var(--primary-600);
        background: var(--primary-50);
    }

[data-theme="dark"] .password-toggle:hover {
    background: rgba(99, 102, 241, 0.1);
}

/* Password Strength */
.password-requirements {
    margin-top: 1rem;
    padding: 1rem;
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
}

.requirement {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
    color: var(--text-tertiary);
    transition: all 0.3s ease;
    font-size: 0.875rem;
}

    .requirement:last-child {
        margin-bottom: 0;
    }

    .requirement i {
        margin-right: 0.75rem;
        width: 16px;
        transition: all 0.3s ease;
    }

    .requirement.met {
        color: var(--success-500);
        font-weight: 500;
    }

        .requirement.met i::before {
            content: "\f058";
        }

.password-strength {
    height: 6px;
    background-color: var(--neutral-200);
    border-radius: 3px;
    margin-top: 1rem;
    overflow: hidden;
}

[data-theme="dark"] .password-strength {
    background-color: var(--neutral-700);
}

.password-strength-bar {
    height: 100%;
    width: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 3px;
}

.strength-weak {
    background: linear-gradient(90deg, #ef4444, #dc2626);
    width: 33%;
}

.strength-medium {
    background: linear-gradient(90deg, #f59e0b, #eab308);
    width: 66%;
}

.strength-strong {
    background: linear-gradient(90deg, #10b981, #059669);
    width: 100%;
}

/* Email Validation */
.email-check {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.125rem;
    z-index: 10;
}

    .email-check.checking {
        color: var(--primary-600);
    }

    .email-check.available {
        color: var(--success-500);
    }

    .email-check.unavailable {
        color: var(--error-500);
    }

/* Validation States */
.form-control.is-valid {
    border-color: var(--success-500);
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.1);
}

.form-control.is-invalid {
    border-color: var(--error-500);
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.1);
}

.field-validation-error {
    color: var(--error-500);
    font-size: 0.875rem;
    margin-top: 0.5rem;
    display: block;
    font-weight: 500;
}

/* Checkboxes */
.auth-form .form-check {
    margin: 1.5rem 0;
}

.auth-form .form-check-input {
    width: 1.25rem;
    height: 1.25rem;
    margin-top: 0;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
}

    .auth-form .form-check-input:checked {
        background: linear-gradient(135deg, var(--primary-600), var(--primary-700));
        border-color: var(--primary-600);
        box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
    }

.auth-form .form-check-label {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    line-height: 1.5;
    margin-left: 0.5rem;
}

    .auth-form .form-check-label a {
        color: var(--primary-600);
        text-decoration: none;
        font-weight: 500;
        transition: color 0.3s ease;
    }

        .auth-form .form-check-label a:hover {
            color: var(--primary-700);
        }

/* Auth Buttons */
.auth-form .btn {
    font-size: 1rem;
    font-weight: 600;
    padding: 1rem 2rem;
    border-radius: var(--radius-lg);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.auth-form .btn-primary {
    background: linear-gradient(135deg, var(--primary-600) 0%, var(--primary-700) 100%);
    border: none;
    color: white;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

    .auth-form .btn-primary:hover {
        background: linear-gradient(135deg, var(--primary-700) 0%, var(--primary-800) 100%);
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(99, 102, 241, 0.5);
    }

.auth-form .btn-google {
    background: white;
    border: 2px solid var(--border-light);
    color: var(--text-primary);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

    .auth-form .btn-google:hover {
        background: var(--bg-tertiary);
        border-color: var(--primary-600);
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }

/* Divider */
.divider {
    position: relative;
    margin: 2rem 0;
    text-align: center;
}

    .divider::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 0;
        right: 0;
        height: 1px;
        background: linear-gradient(90deg, transparent, var(--border-color), transparent);
    }

    .divider span {
        background: var(--bg-secondary);
        color: var(--text-tertiary);
        padding: 0 1.5rem;
        font-size: 0.875rem;
        font-weight: 500;
    }

/* Loading States */
.btn.loading {
    color: transparent;
    pointer-events: none;
}

    .btn.loading::after {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 20px;
        height: 20px;
        margin: -10px 0 0 -10px;
        border: 2px solid currentColor;
        border-radius: 50%;
        border-top-color: transparent;
        animation: btn-loading-spinner 1s linear infinite;
        color: white;
    }

/* Auth Footer */
.auth-footer {
    text-align: center;
    padding: 1.5rem 2rem;
    background: var(--bg-tertiary);
    border-top: 1px solid var(--border-light);
    color: var(--text-secondary);
    font-size: 0.9375rem;
}

    .auth-footer a {
        color: var(--primary-600);
        text-decoration: none;
        font-weight: 600;
        transition: color 0.3s ease;
    }

        .auth-footer a:hover {
            color: var(--primary-700);
        }

/* Benefits Section */
.auth-benefits {
    background: var(--primary-50);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    margin-top: 1.5rem;
    border: 1px solid rgba(99, 102, 241, 0.1);
}

[data-theme="dark"] .auth-benefits {
    background: rgba(99, 102, 241, 0.05);
    border-color: rgba(99, 102, 241, 0.2);
}

.auth-benefits h6 {
    color: var(--primary-700);
    margin-bottom: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.auth-benefits ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.auth-benefits li {
    margin-bottom: 0.75rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9375rem;
}

    .auth-benefits li i {
        color: var(--success-500);
        font-size: 0.875rem;
    }

/* Toast Notifications */
.toast {
    border: none;
    border-radius: var(--radius-lg);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
}

.toast-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
    .auth-container {
        padding: 0 0.5rem;
        max-width: 480px;
    }

    .auth-header {
        padding: 2rem 1.5rem 1rem;
    }

    .auth-body {
        padding: 0 1.5rem 2rem;
    }

    .auth-footer {
        padding: 1rem 1.5rem;
    }

    .auth-header h2 {
        font-size: 1.75rem;
    }

    .shape-1 {
        width: 400px;
        height: 400px;
    }

    .shape-2 {
        width: 300px;
        height: 300px;
    }
}

/* Configuraciones para pantallas m�s anchas */
@media (min-width: 1200px) {
    .auth-container {
        max-width: 1100px;
        padding: 0 2rem;
    }

    .auth-header {
        padding: 3rem 3rem 2rem;
    }

    .auth-body {
        padding: 0 3rem 3rem;
    }

    .auth-footer {
        padding: 2rem 3rem;
    }

    .auth-header h2 {
        font-size: 2.5rem;
    }

    .shape-1 {
        width: 700px;
        height: 700px;
        top: -350px;
        left: -350px;
    }

    .shape-2 {
        width: 500px;
        height: 500px;
        bottom: -250px;
        right: -250px;
    }
}

@media (min-width: 1600px) {
    .auth-container {
        max-width: 1400px;
        padding: 0 4rem;
    }

    .auth-header {
        padding: 4rem 4rem 2.5rem;
    }

    .auth-body {
        padding: 0 4rem 4rem;
    }

    .auth-footer {
        padding: 2.5rem 4rem;
    }

    .auth-header h2 {
        font-size: 3rem;
    }

    .shape-1 {
        width: 900px;
        height: 900px;
        top: -450px;
        left: -450px;
    }

    .shape-2 {
        width: 700px;
        height: 700px;
        bottom: -350px;
        right: -350px;
    }
}



