/* consolidated-styles.css */

/* Common Variables and Base Styles */
:root {
    --primary-color: #6a11cb;
    --secondary-color: #2575fc;
    --accent-color: #ff6b6b;
    --dark-color: #2d3748;
    --light-color: #f8f9fa;
    --success-color: #4ade80;
    --step-color: #cbd5e0;
    --step-active: #6a11cb;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* Common Container Styles */
.forgot-container,
.register-container,
.login-container {
    display: flex;
    max-width: 1200px;
    width: 100%;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    background-color: white;
    animation: fadeIn 0.8s ease-out;
}

/* Left Panel (Common) */
.forgot-left,
.register-left,
.login-left {
    flex: 1;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    padding: 60px 40px;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.forgot-left::before,
.register-left::before,
.login-left::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.3;
    animation: moveBackground 20s linear infinite;
}

/* Right Panel (Common) */
.forgot-right,
.register-right,
.login-right {
    background-color: white;
    position: relative;
}

/* Forgot Password Specific */
.forgot-container {
    max-width: 1100px;
}

.forgot-right {
    flex: 1.2;
    padding: 60px 50px;
}

/* Register Specific */
.register-container {
    max-width: 1200px;
}

.register-right {
    flex: 1.5;
    padding: 60px 50px;
}

/* Login Specific */
.login-container {
    max-width: 1100px;
}

.login-right {
    flex: 1.2;
    padding: 60px 50px;
}

/* Logo and Branding */
.logo-container {
    display: flex;
    align-items: center;
    margin-bottom: 40px;
}

.logo {
    height: 60px;
    margin-right: 15px;
}

.brand-name {
    font-size: 28px;
    font-weight: 700;
    color: white;
    letter-spacing: 1px;
}

.brand-tagline {
    font-size: 18px;
    opacity: 0.9;
    margin-top: 5px;
}

/* Welcome Content */
.welcome-text {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.3;
}

.welcome-subtext {
    font-size: 16px;
    opacity: 0.9;
    line-height: 1.6;
    margin-bottom: 30px;
}

/* Features List */
.features-list {
    list-style: none;
    margin-top: 40px;
}

.features-list li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.features-list i {
    margin-right: 12px;
    font-size: 18px;
    color: var(--success-color);
}

/* Form Containers */
.forgot-form-container,
.register-form-container,
.login-form-container {
    margin: 0 auto;
}

.forgot-form-container,
.login-form-container {
    max-width: 400px;
}

.register-form-container {
    max-width: 100%;
}

/* Form Titles */
.form-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 10px;
}

.form-subtitle {
    color: #718096;
    margin-bottom: 35px;
    font-size: 15px;
}

/* Form Elements */
.form-group {
    margin-bottom: 25px;
    position: relative;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--dark-color);
    font-size: 14px;
}

.input-with-icon {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #a0aec0;
    font-size: 18px;
}

.form-control {
    width: 100%;
    padding: 15px 15px 15px 50px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s ease;
    background-color: #f8fafc;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(106, 17, 203, 0.1);
    background-color: white;
}

/* Password Toggle */
.password-toggle {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #a0aec0;
    cursor: pointer;
    font-size: 18px;
}

/* Password Strength */
.password-strength {
    margin-top: 8px;
    height: 4px;
    border-radius: 2px;
    background-color: #e2e8f0;
    overflow: hidden;
}

.password-strength-bar {
    height: 100%;
    width: 0;
    transition: width 0.3s ease;
}

.password-strength.weak .password-strength-bar {
    background-color: #f56565;
    width: 33%;
}

.password-strength.medium .password-strength-bar {
    background-color: #ed8936;
    width: 66%;
}

.password-strength.strong .password-strength-bar {
    background-color: #48bb78;
    width: 100%;
}

/* App Selection (Common) */
.app-selection {
    margin-bottom: 30px;
}

.app-selection-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--dark-color);
}

.app-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.app-option {
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    padding: 15px;
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: #f8fafc;
}

.app-option:hover {
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(106, 17, 203, 0.1);
}

.app-option.selected {
    border-color: var(--primary-color);
    background-color: rgba(106, 17, 203, 0.05);
}

.app-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    color: white;
}

/* Forgot Password & Login App Icons */
.forgot-right .app-icon,
.login-right .app-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    font-size: 18px;
}

/* Register App Icons */
.register-right .app-icon {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    font-size: 22px;
    margin-right: 15px;
}

.app-icon.godstime {
    background: linear-gradient(135deg, #6a11cb, #2575fc);
}

.app-icon.bigbook {
    background: linear-gradient(135deg, #f093fb, #f5576c);
}

.app-name {
    font-weight: 600;
    font-size: 15px;
    color: var(--dark-color);
}

/* Register Specific App Info */
.app-info {
    flex: 1;
}

.app-description {
    font-size: 13px;
    color: #718096;
}

/* Buttons */
.reset-button,
.login-button,
.btn {
    padding: 16px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.reset-button:hover,
.login-button:hover,
.btn-next:hover,
.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 7px 20px rgba(106, 17, 203, 0.3);
}

.reset-button i,
.login-button i,
.btn i {
    margin-right: 10px;
    font-size: 18px;
}

.reset-button,
.login-button {
    width: 100%;
}

/* Form Navigation Buttons (Register) */
.form-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
}

.btn-prev {
    background-color: #e2e8f0;
    color: var(--dark-color);
}

.btn-prev:hover {
    background-color: #cbd5e0;
    transform: none;
    box-shadow: none;
}

.btn-next,
.btn-submit {
    padding: 14px 30px;
}

/* Message Container */
.message-container {
    margin-top: 20px;
    padding: 15px;
    border-radius: 10px;
    background-color: #fff5f5;
    color: #c53030;
    font-size: 14px;
    display: none;
}

.message-container.success {
    background-color: #f0fff4;
    color: #22543d;
}

.message-container.show {
    display: block;
    animation: slideIn 0.5s ease-out;
}

/* Links */
.login-link,
.register-link {
    text-align: center;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
    color: #718096;
    font-size: 15px;
}

.login-link a,
.register-link a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.login-link a:hover,
.register-link a:hover {
    text-decoration: underline;
}

/* Forgot Password Form Footer */
.form-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
    margin-bottom: 25px;
}

.remember-me {
    display: flex;
    align-items: center;
}

.remember-checkbox {
    margin-right: 8px;
}

.forgot-password {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: color 0.3s ease;
}

.forgot-password:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* Copyright */
.copyright {
    text-align: center;
    margin-top: 20px;
    color: #a0aec0;
    font-size: 13px;
}

.copyright a {
    color: var(--primary-color);
    text-decoration: none;
}

.copyright a:hover {
    text-decoration: underline;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes moveBackground {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes slideIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Forgot Password Specific Styles */
/* Reset Steps */
.reset-steps {
    margin-bottom: 30px;
}

.reset-step {
    display: none;
    animation: slideIn 0.5s ease-out;
}

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

/* Step Indicator */
.step-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
}

.step-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: #718096;
    margin: 0 10px;
    position: relative;
}

.step-circle.active {
    background-color: var(--primary-color);
    color: white;
}

.step-circle.completed {
    background-color: var(--success-color);
    color: white;
}

.step-line {
    flex: 1;
    height: 2px;
    background-color: #e2e8f0;
    max-width: 60px;
}

.step-line.completed {
    background-color: var(--success-color);
}

.step-label {
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    color: #718096;
    margin-top: 5px;
}

.step-label.active {
    color: var(--primary-color);
}

/* Verification Code */
.verification-code {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 20px;
}

.code-input {
    width: 55px;
    height: 60px;
    text-align: center;
    font-size: 24px;
    font-weight: 600;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    background-color: #f8fafc;
    transition: all 0.3s ease;
}

.code-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(106, 17, 203, 0.1);
    background-color: white;
}

/* Success Message */
.success-message {
    text-align: center;
    padding: 30px 20px;
}

.success-icon {
    font-size: 60px;
    color: var(--success-color);
    margin-bottom: 20px;
}

.success-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 10px;
}

.success-text {
    color: #718096;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 25px;
}

/* Register Specific Styles */
/* Progress Steps */
.progress-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
    position: relative;
}

.progress-steps::before {
    content: '';
    position: absolute;
    top: 15px;
    left: 0;
    right: 0;
    height: 2px;
    background-color: var(--step-color);
    z-index: 1;
}

.progress-bar {
    position: absolute;
    top: 15px;
    left: 0;
    height: 2px;
    background-color: var(--step-active);
    z-index: 2;
    transition: width 0.3s ease;
}

.step {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
}

.step-number {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: white;
    border: 2px solid var(--step-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: var(--step-color);
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

.step.active .step-number {
    background-color: var(--step-active);
    border-color: var(--step-active);
    color: white;
}

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

.step-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--step-color);
    text-align: center;
}

.step.active .step-label {
    color: var(--step-active);
}

/* Form Steps */
.form-step {
    display: none;
    animation: slideIn 0.5s ease-out;
}

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

/* Responsive Design */
/* Common Responsive */
@media (max-width: 992px) {
    .forgot-container,
    .register-container,
    .login-container {
        flex-direction: column;
        max-width: 700px;
    }
    
    .forgot-left,
    .register-left,
    .login-left,
    .forgot-right,
    .register-right,
    .login-right {
        padding: 40px 30px;
    }
    
    .forgot-container {
        max-width: 500px;
    }
}

/* Forgot Password Responsive */
@media (max-width: 576px) {
    .verification-code {
        gap: 5px;
    }
    
    .code-input {
        width: 45px;
        height: 50px;
        font-size: 20px;
    }
    
    .step-circle {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
    
    .step-line {
        max-width: 40px;
    }
    
    .app-options {
        grid-template-columns: 1fr;
    }
    
    .welcome-text {
        font-size: 26px;
    }
    
    .brand-name {
        font-size: 24px;
    }
}

/* Register Responsive */
@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .app-options {
        grid-template-columns: 1fr;
    }
    
    .welcome-text {
        font-size: 26px;
    }
    
    .brand-name {
        font-size: 24px;
    }
}

@media (max-width: 576px) {
    .form-navigation {
        flex-direction: column;
        gap: 15px;
    }
    
    .btn {
        width: 100%;
    }
}

/* Login Responsive */
@media (max-width: 576px) {
    .app-options {
        grid-template-columns: 1fr;
    }
    
    .form-footer {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .forgot-password {
        margin-top: 10px;
    }
    
    .welcome-text {
        font-size: 26px;
    }
    
    .brand-name {
        font-size: 24px;
    }
}