/* webassets/css/auth.css */
:root {
    --auth-primary: #00CCFF;
    --auth-secondary: #3B353D;
    --auth-light: #F8F9FA;
    --auth-dark: #121212;
    --auth-success: #00D4AA;
    --auth-error: #FF6B6B;
    --auth-warning: #FFC107;
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* Auth Page Layout */
.auth-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    display: flex;
    align-items: center;
    padding: 20px;
}

.auth-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.auth-background .shape {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--auth-primary) 0%, rgba(0, 204, 255, 0.3) 100%);
    opacity: 0.1;
    animation: float 15s infinite linear;
}

.auth-background .shape-1 {
    width: 400px;
    height: 400px;
    top: -200px;
    right: -100px;
    animation-delay: 0s;
}

.auth-background .shape-2 {
    width: 300px;
    height: 300px;
    bottom: -150px;
    left: -100px;
    animation-delay: 3s;
}

.auth-background .shape-3 {
    width: 200px;
    height: 200px;
    top: 20%;
    left: 10%;
    animation-delay: 6s;
}

.auth-background .shape-4 {
    width: 150px;
    height: 150px;
    bottom: 30%;
    right: 15%;
    animation-delay: 9s;
}

.auth-background .shape-5 {
    width: 100px;
    height: 100px;
    top: 60%;
    left: 20%;
    animation-delay: 12s;
}

.auth-background .shape-6 {
    width: 250px;
    height: 250px;
    top: 40%;
    right: 20%;
    animation-delay: 15s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    33% {
        transform: translateY(-20px) rotate(120deg);
    }
    66% {
        transform: translateY(20px) rotate(240deg);
    }
}

.auth-container {
    max-width: 1200px;
    margin: 0 auto;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    min-height: 80vh;
}

/* Brand Side Styles */
.auth-brand-side {
    background: linear-gradient(135deg, var(--auth-secondary) 0%, #2a2531 100%);
    color: white;
    height: 100%;
    min-height: 80vh;
    padding: 60px 50px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.auth-brand-side::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('https://images.unsplash.com/photo-1552664730-d307ca884978?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1000&q=80');
    background-size: cover;
    background-position: center;
    opacity: 0.1;
}

.back-home-btn {
    position: absolute;
    top: 30px;
    left: 30px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-weight: 500;
    z-index: 2;
    transition: all 0.3s ease;
}

.back-home-btn:hover {
    color: white;
    transform: translateX(-5px);
}

.mobile-back {
    display: none;
}

.auth-logo {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    z-index: 2;
}

.logo-circle {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--auth-primary) 0%, #0066FF 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    box-shadow: 0 10px 30px rgba(0, 204, 255, 0.3);
}

.logo-circle i {
    font-size: 2.5rem;
    color: white;
}

.auth-brand-name {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 10px;
    background: linear-gradient(135deg, white 0%, var(--auth-primary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.auth-brand-tagline {
    font-size: 1.1rem;
    opacity: 0.8;
}

/* Features */
.auth-features {
    margin-bottom: 50px;
    position: relative;
    z-index: 2;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.feature-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(10px);
}

.feature-icon {
    width: 50px;
    height: 50px;
    background: rgba(0, 204, 255, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    flex-shrink: 0;
}

.feature-icon i {
    font-size: 1.5rem;
    color: var(--auth-primary);
}

.feature-text h5 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: white;
}

.feature-text p {
    font-size: 0.9rem;
    opacity: 0.7;
    margin: 0;
}

/* Testimonial */
.auth-testimonial {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 30px;
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 2;
}

.testimonial-content i.fa-quote-left {
    font-size: 2rem;
    color: rgba(0, 204, 255, 0.3);
    margin-bottom: 15px;
    display: block;
}

.testimonial-content p {
    font-style: italic;
    margin-bottom: 25px;
    line-height: 1.6;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.testimonial-author img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--auth-primary);
}

.testimonial-author h6 {
    margin: 0;
    font-size: 1rem;
}

.testimonial-author span {
    font-size: 0.85rem;
    opacity: 0.7;
}

/* Form Side Styles */
.auth-form-side {
    background: white;
    height: 100%;
    min-height: 80vh;
    padding: 60px 50px;
    display: flex;
    align-items: center;
}

.auth-form-container {
    width: 100%;
    max-width: 450px;
    margin: 0 auto;
}

.auth-form-header {
    text-align: center;
    margin-bottom: 40px;
}

.auth-form-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--auth-secondary);
}

.auth-form-subtitle {
    color: #6C757D;
    font-size: 1.1rem;
}

/* Social Login */
.social-login {
    margin-bottom: 30px;
}

.social-login-text {
    text-align: center;
    color: #6C757D;
    margin-bottom: 20px;
    position: relative;
}

.social-login-text::before,
.social-login-text::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 30%;
    height: 1px;
    background: #E9ECEF;
}

.social-login-text::before {
    left: 0;
}

.social-login-text::after {
    right: 0;
}

.social-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.social-btn {
    flex: 1;
    padding: 12px;
    border: 1px solid #E9ECEF;
    border-radius: 10px;
    background: white;
    color: #495057;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.social-btn:hover {
    border-color: var(--auth-primary);
    color: var(--auth-primary);
    transform: translateY(-2px);
}

.google-btn:hover {
    background: #F8F9FA;
}

.linkedin-btn:hover {
    background: #F0F8FF;
}

.divider {
    text-align: center;
    position: relative;
    margin: 25px 0;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #E9ECEF;
}

.divider span {
    background: white;
    padding: 0 15px;
    color: #6C757D;
    font-size: 0.9rem;
    position: relative;
    z-index: 1;
}

/* Form Styles */
.auth-form {
    width: 100%;
}

.form-group {
    margin-bottom: 25px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--auth-secondary);
}

.input-group {
    position: relative;
}

.input-group-text {
    background: #F8F9FA;
    border: 1px solid #E9ECEF;
    border-right: none;
    color: #6C757D;
    padding: 0 15px;
}

.input-group .form-control {
    border-left: none;
    padding-left: 0;
    height: 50px;
}

.input-group .form-control:focus {
    box-shadow: none;
    border-color: var(--auth-primary);
}

.input-group .form-control:focus + .input-group-text {
    border-color: var(--auth-primary);
}

.toggle-password {
    background: transparent;
    border: 1px solid #E9ECEF;
    border-left: none;
    cursor: pointer;
    color: #6C757D;
    transition: all 0.3s ease;
}

.toggle-password:hover {
    color: var(--auth-primary);
}

.form-helper {
    font-size: 0.85rem;
    color: #6C757D;
    margin-top: 5px;
}

.forgot-password-link {
    color: var(--auth-primary);
    text-decoration: none;
    font-weight: 500;
}

.forgot-password-link:hover {
    text-decoration: underline;
}

.form-check {
    margin-bottom: 25px;
}

.form-check-input:checked {
    background-color: var(--auth-primary);
    border-color: var(--auth-primary);
}

.form-check-input:focus {
    box-shadow: 0 0 0 0.25rem rgba(0, 204, 255, 0.25);
}

/* Submit Button */
.auth-submit-btn {
    width: 100%;
    padding: 15px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--auth-primary) 0%, #0066FF 100%);
    border: none;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    margin-bottom: 25px;
}

.auth-submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 204, 255, 0.3);
}

.auth-submit-btn .btn-icon {
    transition: transform 0.3s ease;
}

.auth-submit-btn:hover .btn-icon {
    transform: translateX(5px);
}

.auth-submit-btn:active {
    transform: translateY(-1px);
}

/* Auth Footer */
.auth-footer {
    text-align: center;
    padding-top: 25px;
    border-top: 1px solid #E9ECEF;
}

.auth-footer p {
    color: #6C757D;
    margin: 0;
}

.auth-link {
    color: var(--auth-primary);
    font-weight: 600;
    text-decoration: none;
}

.auth-link:hover {
    text-decoration: underline;
}

/* Forgot Password Modal */
.forgot-password-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.forgot-password-modal.active {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 16px;
    padding: 30px;
    width: 100%;
    max-width: 500px;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.modal-header h5 {
    margin: 0;
    color: var(--auth-secondary);
}

.close-modal {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #6C757D;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-modal:hover {
    color: var(--auth-secondary);
}

.modal-body {
    margin-bottom: 25px;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
}

/* Signup Specific Styles */
.signup-progress {
    margin-bottom: 50px;
    position: relative;
    z-index: 2;
}

.progress-step {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
    opacity: 0.6;
    transition: all 0.3s ease;
}

.progress-step.active {
    opacity: 1;
}

.progress-step.active .step-number {
    background: linear-gradient(135deg, var(--auth-primary) 0%, #0066FF 100%);
    transform: scale(1.1);
}

.step-number {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    margin-right: 15px;
    transition: all 0.3s ease;
}

.step-content h5 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: white;
}

.step-content p {
    font-size: 0.9rem;
    opacity: 0.7;
    margin: 0;
}

.signup-benefits {
    position: relative;
    z-index: 2;
}

.signup-benefits h4 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: white;
}

.benefits-list {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 25px;
    backdrop-filter: blur(5px);
}

.benefit-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.benefit-item:last-child {
    margin-bottom: 0;
}

.benefit-item i {
    color: var(--auth-primary);
    margin-right: 15px;
    font-size: 1.1rem;
}

.benefit-item span {
    font-size: 0.95rem;
    opacity: 0.9;
}

/* Multi-step Form */
.multi-step-form {
    position: relative;
}

.form-step {
    display: none;
}

.form-step.active {
    display: block;
    animation: stepFadeIn 0.5s ease;
}

@keyframes stepFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.step-header {
    text-align: center;
    margin-bottom: 30px;
}

.step-header h5 {
    font-size: 1.3rem;
    color: var(--auth-secondary);
    margin-bottom: 8px;
}

.step-header p {
    color: #6C757D;
    margin: 0;
}

/* Password Strength */
.password-strength {
    margin-top: 10px;
}

.strength-meter {
    height: 6px;
    background: #E9ECEF;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 5px;
}

.strength-bar {
    height: 100%;
    width: 0%;
    background: var(--auth-error);
    border-radius: 3px;
    transition: width 0.3s ease, background 0.3s ease;
}

.strength-text {
    font-size: 0.85rem;
    color: #6C757D;
}

.strength-text span {
    font-weight: 600;
}

.password-requirements {
    margin-top: 15px;
    padding: 15px;
    background: #F8F9FA;
    border-radius: 8px;
}

.requirements-title {
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 10px;
    color: var(--auth-secondary);
}

.password-requirements ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.password-requirements li {
    font-size: 0.85rem;
    color: #6C757D;
    margin-bottom: 5px;
    position: relative;
    padding-left: 20px;
}

.password-requirements li:before {
    content: '✗';
    position: absolute;
    left: 0;
    color: var(--auth-error);
}

.password-requirements li.valid:before {
    content: '✓';
    color: var(--auth-success);
}

/* Experience Options */
.experience-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.experience-option input[type="radio"] {
    display: none;
}

.experience-option label {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 15px;
    border: 2px solid #E9ECEF;
    border-radius: 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.experience-option input[type="radio"]:checked + label {
    border-color: var(--auth-primary);
    background: rgba(0, 204, 255, 0.05);
    transform: translateY(-3px);
}

.experience-option label i {
    font-size: 2rem;
    margin-bottom: 15px;
    color: #6C757D;
    transition: all 0.3s ease;
}

.experience-option input[type="radio"]:checked + label i {
    color: var(--auth-primary);
}

.experience-option label span {
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--auth-secondary);
}

.experience-option label small {
    font-size: 0.8rem;
    color: #6C757D;
}

/* Investment Slider */
.investment-slider {
    margin-top: 15px;
}

.form-range {
    height: 8px;
}

.form-range::-webkit-slider-thumb {
    background: var(--auth-primary);
    border: none;
    width: 24px;
    height: 24px;
    margin-top: -8px;
}

.form-range::-moz-range-thumb {
    background: var(--auth-primary);
    border: none;
    width: 24px;
    height: 24px;
}

.slider-value {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--auth-secondary);
    margin: 15px 0;
}

.slider-ticks {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: #6C757D;
    margin-top: 5px;
}

/* Step Actions */
.step-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
    gap: 15px;
}

.prev-step, .next-step, .submit-btn {
    min-width: 150px;
    padding: 12px 25px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Success Message */
.success-message {
    text-align: center;
    padding: 40px 20px;
    display: none;
}

.success-message.active {
    display: block;
    animation: successFadeIn 0.5s ease;
}

@keyframes successFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.success-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--auth-success) 0%, #00b894 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
    animation: successPulse 2s infinite;
}

@keyframes successPulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(0, 212, 170, 0.4);
    }
    70% {
        box-shadow: 0 0 0 20px rgba(0, 212, 170, 0);
    }
}

.success-icon i {
    font-size: 2.5rem;
    color: white;
}

.success-message h3 {
    font-size: 1.8rem;
    color: var(--auth-secondary);
    margin-bottom: 15px;
}

.success-message p {
    color: #6C757D;
    margin-bottom: 30px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.success-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Responsive Design */
@media (max-width: 992px) {
    .auth-container {
        border-radius: 15px;
    }
    
    .auth-brand-side,
    .auth-form-side {
        padding: 40px 30px;
    }
    
    .auth-form-title {
        font-size: 1.8rem;
    }
    
    .experience-options {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .auth-page {
        padding: 15px;
    }
    
    .auth-container {
        min-height: auto;
    }
    
    .auth-brand-side {
        min-height: auto;
        padding: 40px 20px;
    }
    
    .auth-form-side {
        min-height: auto;
        padding: 40px 20px;
    }
    
    .social-buttons {
        flex-direction: column;
    }
    
    .step-actions {
        flex-direction: column;
    }
    
    .prev-step, .next-step, .submit-btn {
        width: 100%;
    }
    
    .mobile-back {
        display: block;
        position: absolute;
        top: 20px;
        left: 20px;
        font-size: 1.2rem;
    }
    
    .back-home-btn:not(.mobile-back) {
        display: none;
    }
}

@media (max-width: 576px) {
    .auth-form-title {
        font-size: 1.6rem;
    }
    
    .auth-form-subtitle {
        font-size: 1rem;
    }
    
    .auth-brand-name {
        font-size: 2rem;
    }
    
    .logo-circle {
        width: 60px;
        height: 60px;
    }
    
    .logo-circle i {
        font-size: 2rem;
    }
}