/* Enhanced Authentication Styles - Additional Components */

/* Multi-step Form Enhancements */
.register-container {
    padding: 1rem;
}

.register-card {
    max-width: 600px;
}

.signup-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 2rem 0;
    padding: 1.5rem;
    background: var(--auth-bg-light);
    border-radius: var(--auth-radius-lg);
    border: 1px solid var(--auth-border);
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    transition: var(--auth-transition);
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--auth-border);
    color: var(--auth-text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--auth-transition);
}

.progress-step.active .step-number {
    background: var(--auth-primary);
    color: white;
    transform: scale(1.1);
    box-shadow: var(--auth-shadow-md);
}

.progress-step.completed .step-number {
    background: var(--auth-success);
    color: white;
}

.step-label {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--auth-text-muted);
    transition: var(--auth-transition);
}

.progress-step.active .step-label {
    color: var(--auth-primary);
    font-weight: 600;
}

.progress-line {
    width: 60px;
    height: 2px;
    background: var(--auth-border);
    margin: 0 1rem;
    transition: var(--auth-transition);
}

.progress-line.completed {
    background: var(--auth-success);
}

/* Multi-step Form Steps */
.multi-step-form {
    position: relative;
    overflow: hidden;
}

.form-step {
    display: none;
    animation: fadeInUp 0.4s ease-out;
}

.form-step.active {
    display: block;
}

.step-navigation {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.step-navigation .btn {
    flex: 1;
}

/* Password Strength Meter */
.password-input-wrapper {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--auth-text-muted);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: var(--auth-radius-sm);
    transition: var(--auth-transition);
}

.password-toggle:hover {
    color: var(--auth-text-primary);
    background: var(--auth-bg-light);
}

.password-strength {
    margin-top: 0.75rem;
}

.strength-meter {
    width: 100%;
    height: 4px;
    background: var(--auth-border);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.strength-bar {
    height: 100%;
    width: 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.strength-bar.weak {
    width: 25%;
    background: var(--auth-danger);
}

.strength-bar.fair {
    width: 50%;
    background: var(--auth-warning);
}

.strength-bar.good {
    width: 75%;
    background: #3b82f6;
}

.strength-bar.strong {
    width: 100%;
    background: var(--auth-success);
}

.strength-text {
    font-size: 0.85rem;
    color: var(--auth-text-secondary);
}

.password-requirements {
    margin-top: 0.75rem;
    padding: 1rem;
    background: var(--auth-bg-light);
    border-radius: var(--auth-radius-sm);
    border-left: 3px solid var(--auth-primary);
}

.requirement {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
    color: var(--auth-text-secondary);
    transition: var(--auth-transition);
}

.requirement:last-child {
    margin-bottom: 0;
}

.requirement i {
    font-size: 0.6rem;
    color: var(--auth-text-muted);
    transition: var(--auth-transition);
}

.requirement.met {
    color: var(--auth-success);
}

.requirement.met i {
    color: var(--auth-success);
}

/* Field Status Indicators */
.field-status {
    font-size: 0.85rem;
    margin-top: 0.5rem;
    padding: 0.5rem 0.75rem;
    border-radius: var(--auth-radius-sm);
    display: none;
}

.field-status.checking {
    display: block;
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
    border-left: 3px solid #3b82f6;
}

.field-status.available {
    display: block;
    background: rgba(16, 185, 129, 0.1);
    color: var(--auth-success);
    border-left: 3px solid var(--auth-success);
}

.field-status.unavailable {
    display: block;
    background: rgba(239, 68, 68, 0.1);
    color: var(--auth-danger);
    border-left: 3px solid var(--auth-danger);
}

/* Account Summary */
.account-summary {
    background: var(--auth-bg-light);
    padding: 1.5rem;
    border-radius: var(--auth-radius-lg);
    margin-bottom: 2rem;
    border: 1px solid var(--auth-border);
}

.account-summary h3 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    color: var(--auth-text-primary);
    font-size: 1.1rem;
    font-weight: 600;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--auth-border);
}

.summary-item:last-child {
    border-bottom: none;
}

.summary-item .label {
    font-weight: 500;
    color: var(--auth-text-secondary);
}

.summary-item .value {
    font-weight: 600;
    color: var(--auth-text-primary);
}

/* Required Checkbox Styling */
.required-checkbox {
    padding: 1rem;
    background: rgba(79, 70, 229, 0.05);
    border: 1px solid rgba(79, 70, 229, 0.2);
    border-radius: var(--auth-radius-md);
}

/* Enhanced Trial Info */
.trial-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 0.75rem;
    margin: 1rem 0;
}

.trial-feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
    color: var(--auth-text-secondary);
}

.trial-feature i {
    color: var(--auth-success);
    font-size: 1rem;
}

.trial-note {
    font-size: 0.85rem;
    color: var(--auth-text-muted);
    text-align: center;
    margin-top: 1rem;
    font-style: italic;
}

/* Demo Account Enhancements */
.demo-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.demo-header i {
    font-size: 1.5rem;
    color: var(--auth-primary);
}

.demo-features {
    display: flex;
    justify-content: space-around;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--auth-border);
}

.demo-feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    text-align: center;
}

.demo-feature i {
    color: var(--auth-success);
    font-size: 1.1rem;
}

.demo-feature span {
    font-size: 0.8rem;
    color: var(--auth-text-secondary);
    font-weight: 500;
}

/* Side Panel Enhancements */
.auth-side-panel {
    display: none;
    min-width: 400px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: var(--auth-radius-xl);
    padding: 2rem;
    margin-left: 2rem;
    box-shadow: var(--auth-shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.register-side-panel {
    min-width: 450px;
}

.side-panel-content {
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.side-panel-header {
    text-align: center;
}

.side-panel-header i {
    font-size: 2.5rem;
    color: var(--auth-primary);
    margin-bottom: 1rem;
    display: block;
}

.side-panel-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--auth-text-primary);
    margin: 0;
}

.success-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    text-align: center;
}

.stat-item {
    padding: 1rem;
    background: var(--auth-bg-light);
    border-radius: var(--auth-radius-lg);
    border: 1px solid var(--auth-border);
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--auth-primary);
    margin-bottom: 0.5rem;
    background: var(--auth-gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--auth-text-secondary);
    font-weight: 500;
}

.feature-highlights {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: var(--auth-bg-light);
    border-radius: var(--auth-radius-lg);
    border: 1px solid var(--auth-border);
    transition: var(--auth-transition);
}

.feature-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--auth-shadow-md);
}

.feature-item i {
    font-size: 1.5rem;
    color: var(--auth-primary);
    margin-top: 0.25rem;
}

.feature-content h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--auth-text-primary);
    margin-bottom: 0.5rem;
}

.feature-content p {
    font-size: 0.85rem;
    color: var(--auth-text-secondary);
    line-height: 1.4;
    margin: 0;
}

.testimonial {
    background: var(--auth-bg-light);
    padding: 1.5rem;
    border-radius: var(--auth-radius-lg);
    border: 1px solid var(--auth-border);
    position: relative;
}

.testimonial-content {
    margin-bottom: 1rem;
}

.testimonial-content i {
    font-size: 1.5rem;
    color: var(--auth-primary);
    margin-bottom: 0.75rem;
    display: block;
}

.testimonial-content p {
    font-style: italic;
    color: var(--auth-text-secondary);
    line-height: 1.5;
    margin: 0;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.testimonial-author img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid var(--auth-border);
}

.author-info strong {
    display: block;
    color: var(--auth-text-primary);
    font-weight: 600;
    font-size: 0.9rem;
}

.author-info span {
    color: var(--auth-text-muted);
    font-size: 0.8rem;
}

/* Enhanced Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 11000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(5px);
}

.modal.active {
    opacity: 1;
    pointer-events: all;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
}

.modal-content {
    background: var(--auth-bg-white);
    border-radius: var(--auth-radius-xl);
    box-shadow: var(--auth-shadow-xl);
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: modalSlideIn 0.4s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    text-align: center;
    margin-bottom: 1.5rem;
    position: relative;
}

.modal-close {
    position: absolute;
    top: -0.5rem;
    right: -0.5rem;
    background: var(--auth-bg-light);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--auth-transition);
    color: var(--auth-text-muted);
}

.modal-close:hover {
    background: var(--auth-danger);
    color: white;
    transform: scale(1.1);
}

.success-modal .modal-header {
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--auth-border);
}

.success-icon {
    width: 80px;
    height: 80px;
    background: var(--auth-gradient-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    animation: successPulse 1s ease-in-out;
}

@keyframes successPulse {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.success-icon i {
    font-size: 2rem;
    color: white;
}

.modal-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--auth-text-primary);
    margin: 0;
}

.modal-body {
    margin-bottom: 2rem;
}

.modal-body p {
    color: var(--auth-text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.next-steps {
    background: var(--auth-bg-light);
    padding: 1.5rem;
    border-radius: var(--auth-radius-lg);
    border-left: 4px solid var(--auth-primary);
    margin-top: 1.5rem;
}

.next-steps h4 {
    color: var(--auth-text-primary);
    margin-bottom: 1rem;
    font-size: 1rem;
    font-weight: 600;
}

.next-steps ol {
    margin: 0;
    padding-left: 1.5rem;
}

.next-steps li {
    color: var(--auth-text-secondary);
    line-height: 1.5;
    margin-bottom: 0.5rem;
}

.modal-footer {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* Loading Overlay Enhancements */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 12000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(5px);
}

.loading-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.loading-content {
    text-align: center;
    color: white;
}

.loading-spinner {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
}

.spinner-ring {
    position: absolute;
    width: 80px;
    height: 80px;
    border: 4px solid transparent;
    border-top: 4px solid white;
    border-radius: 50%;
    animation: spin 1.5s linear infinite;
}

.spinner-ring:nth-child(2) {
    animation-delay: 0.5s;
    border-top-color: rgba(255, 255, 255, 0.7);
}

.spinner-ring:nth-child(3) {
    animation-delay: 1s;
    border-top-color: rgba(255, 255, 255, 0.4);
}

#loading-text {
    font-size: 1.1rem;
    font-weight: 500;
    margin: 0;
}

/* Trust Indicators */
.trust-indicators {
    display: flex;
    justify-content: space-around;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--auth-border);
}

.trust-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    text-align: center;
}

.trust-item i {
    font-size: 1.5rem;
    color: var(--auth-success);
    margin-bottom: 0.25rem;
}

.trust-item span {
    font-size: 0.8rem;
    color: var(--auth-text-muted);
    font-weight: 500;
}

/* Background Shapes */
.auth-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.auth-bg-shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    animation: float 6s ease-in-out infinite;
}

.shape-1 {
    width: 300px;
    height: 300px;
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 200px;
    height: 200px;
    top: 60%;
    right: 15%;
    animation-delay: 2s;
}

.shape-3 {
    width: 150px;
    height: 150px;
    bottom: 20%;
    left: 20%;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
    }
}

/* Social Auth Enhancements */
.btn-microsoft {
    color: #00a1f1;
}

.btn-microsoft:hover {
    border-color: #00a1f1;
    color: #00a1f1;
}

/* Responsive Design for Enhanced Components */
@media (min-width: 1024px) {
    .auth-container {
        flex-direction: row;
        align-items: flex-start;
        gap: 2rem;
        padding: 2rem;
    }
    
    .auth-side-panel {
        display: flex;
    }
}

@media (max-width: 768px) {
    .signup-progress {
        padding: 1rem;
    }
    
    .progress-step {
        gap: 0.25rem;
    }
    
    .step-number {
        width: 32px;
        height: 32px;
        font-size: 0.8rem;
    }
    
    .step-label {
        font-size: 0.7rem;
    }
    
    .progress-line {
        width: 40px;
        margin: 0 0.5rem;
    }
    
    .success-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .trial-features {
        grid-template-columns: 1fr;
    }
    
    .trust-indicators {
        flex-direction: column;
        gap: 1rem;
    }
    
    .demo-features {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .step-navigation {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .modal-content {
        padding: 1.5rem;
        width: 95%;
    }
    
    .signup-progress {
        flex-direction: column;
        gap: 1rem;
    }
    
    .progress-line {
        width: 2px;
        height: 20px;
        margin: 0;
    }
    
    .account-summary {
        padding: 1rem;
    }
    
    .summary-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
}