/* Signup Styles */

/* Container Layout */
.signup-container {
    display: flex;
    min-height: 100vh;
    background-color: var(--bg-color);
}

/* Left Panel - Information */
.signup-info {
    width: 40%;
    background-color: var(--primary-color);
    color: white;
    padding: 40px;
    display: flex;
    flex-direction: column;
    position: relative;
}

.signup-info .logo {
    display: flex;
    align-items: center;
    margin-bottom: 40px;
}

.signup-info .logo img {
    width: 40px;
    height: 40px;
    margin-right: 10px;
}

.signup-info .logo span {
    font-size: 1.5rem;
    font-weight: 700;
}

.info-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.info-content h1 {
    font-size: 2.2rem;
    margin-bottom: 15px;
}

.info-content .tagline {
    font-size: 1.1rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

/* Benefits Section */
.benefits {
    margin-bottom: 40px;
}

.benefit-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
}

.benefit-icon {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    flex-shrink: 0;
}

.benefit-icon i {
    font-size: 1.2rem;
}

.benefit-text h3 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.benefit-text p {
    font-size: 0.95rem;
    opacity: 0.8;
    line-height: 1.5;
}

/* Testimonial */
.testimonial {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 25px;
    margin-top: auto;
    position: relative;
}

.quote-mark {
    position: absolute;
    top: 15px;
    left: 15px;
    font-size: 1.5rem;
    opacity: 0.5;
}

.quote-text {
    font-style: italic;
    margin-bottom: 20px;
    padding-left: 25px;
    line-height: 1.6;
}

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

.author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
}

.author-avatar i {
    font-size: 1.5rem;
}

.author-name {
    font-weight: 600;
    margin-bottom: 2px;
}

.author-title {
    font-size: 0.85rem;
    opacity: 0.8;
}

.info-footer {
    margin-top: 30px;
    font-size: 0.95rem;
}

.info-footer a {
    color: white;
    text-decoration: underline;
    font-weight: 600;
}

/* Right Panel - Form */
.signup-form-container {
    width: 60%;
    padding: 40px;
    overflow-y: auto;
}

.form-header {
    margin-bottom: 30px;
}

.form-header h2 {
    font-size: 1.8rem;
    color: var(--heading-color);
    margin-bottom: 10px;
}

.form-header p {
    color: var(--text-color);
    opacity: 0.8;
}

/* Gamification Elements */
.gamification-container {
    background-color: var(--card-bg);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: var(--card-shadow);
}

.progress-container {
    margin-bottom: 15px;
}

.progress-bar {
    height: 8px;
    background-color: var(--border-color);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-fill {
    height: 100%;
    width: 0%;
    background-color: var(--primary-color);
    border-radius: 4px;
    transition: width 0.5s ease;
}

.progress-stats {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
}

.points-earned {
    color: var(--primary-color);
    font-weight: 600;
}

.points-earned i {
    color: #f1c40f;
    margin-right: 5px;
}

.achievement-badges {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 15px;
}

.badge {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--text-color);
    opacity: 0.5;
    transition: all 0.3s ease;
    position: relative;
}

.badge.earned {
    background-color: var(--primary-color);
    color: white;
    opacity: 1;
    transform: scale(1.1);
}

.badge.earned::after {
    content: '';
    position: absolute;
    top: -5px;
    right: -5px;
    width: 20px;
    height: 20px;
    background-color: #2ecc71;
    border-radius: 50%;
    border: 2px solid white;
    display: flex;
    align-items: center;
    justify-content: center;
}

.badge.earned::before {
    content: '\f00c';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    top: -5px;
    right: -5px;
    width: 20px;
    height: 20px;
    color: white;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

/* Step Navigation */
.step-navigation {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    position: relative;
}

.step-navigation::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--border-color);
    z-index: 0;
}

.step-btn {
    background: none;
    border: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
    cursor: pointer;
    padding: 0;
    width: 60px;
}

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

.step-label {
    font-size: 0.85rem;
    color: var(--text-color);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.progress-line {
    flex: 1;
    height: 2px;
    background-color: var(--border-color);
    margin: 0 10px;
    margin-bottom: 28px;
    position: relative;
    z-index: 0;
}

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

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

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

.progress-step.completed .step-label {
    color: var(--success-color);
    opacity: 1;
}

.progress-line.active {
    background-color: var(--primary-color);
}

/* Form Steps */
.form-step {
    display: none;
}

.form-step.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

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

.step-title {
    font-size: 1.5rem;
    color: var(--heading-color);
    margin-bottom: 5px;
}

.step-description {
    color: var(--text-color);
    opacity: 0.8;
    margin-bottom: 25px;
}

/* Form Actions */
.form-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
}

.btn {
    padding: 12px 25px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    min-width: 120px;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--border-color);
    color: var(--text-color);
}

.btn-outline:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--heading-color);
    font-weight: 500;
}

.form-group .required {
    color: #e74c3c;
    margin-left: 3px;
}

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

.input-with-icon i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-color);
    opacity: 0.5;
}

.input-with-icon input,
.input-with-icon select {
    padding-left: 45px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background-color: var(--input-bg);
    color: var(--text-color);
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(74, 108, 247, 0.2);
    outline: none;
}

.form-group input::placeholder,
.form-group select::placeholder,
.form-group textarea::placeholder {
    color: var(--text-color);
    opacity: 0.5;
}

.form-row {
    display: flex;
    gap: 20px;
}

.form-group.half {
    flex: 1;
}

/* Toggle Password Button */
.toggle-password {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-color);
    opacity: 0.5;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.toggle-password:hover {
    opacity: 0.8;
}

/* Points Indicator */
.points-indicator {
    position: absolute;
    right: 0;
    top: 0;
    background-color: #f1c40f;
    color: #000;
    font-size: 0.75rem;
    padding: 3px 8px;
    border-radius: 20px;
    font-weight: 600;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.points-indicator:hover {
    opacity: 1;
}

.radio-container, .checkbox-container {
    display: flex;
    align-items: center;
    position: relative;
    padding-left: 35px;
    cursor: pointer;
    font-size: 1rem;
    user-select: none;
}

.radio-container input, .checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.radio-mark {
    position: absolute;
    top: 0;
    left: 0;
    height: 22px;
    width: 22px;
    background-color: var(--bg-color);
    border: 2px solid var(--border-color);
    border-radius: 50%;
}

.radio-container:hover input ~ .radio-mark {
    border-color: var(--primary-color);
}

.radio-container input:checked ~ .radio-mark {
    background-color: var(--bg-color);
    border-color: var(--primary-color);
}

.radio-mark:after {
    content: "";
    position: absolute;
    display: none;
}

.radio-container input:checked ~ .radio-mark:after {
    display: block;
}

.radio-container .radio-mark:after {
    top: 4px;
    left: 4px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--primary-color);
}

/* Password Strength Meter */
.password-strength {
    margin-top: 10px;
}

.strength-meter {
    height: 5px;
    background-color: var(--border-color);
    border-radius: 3px;
    margin-bottom: 5px;
}

.strength-bar {
    height: 100%;
    width: 0;
    border-radius: 3px;
    transition: width 0.3s ease, background-color 0.3s ease;
}

.strength-label {
    font-size: 0.85rem;
    color: var(--text-color);
    opacity: 0.7;
}

/* Learning Style Options */
.learning-style-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 10px;
}

.style-option {
    position: relative;
    background-color: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 10px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.style-option input {
    position: absolute;
    opacity: 0;
}

.style-option:hover {
    border-color: var(--primary-color);
}

.style-option input:checked ~ .style-icon,
.style-option input:checked ~ .style-label {
    color: var(--primary-color);
}

.style-option input:checked + .style-icon {
    background-color: rgba(74, 108, 247, 0.1);
}

.style-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--bg-color);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    font-size: 1.5rem;
    color: var(--text-color);
    transition: all 0.3s ease;
}

.style-label {
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--heading-color);
    transition: color 0.3s ease;
}

.style-description {
    font-size: 0.85rem;
    color: var(--text-color);
    opacity: 0.8;
}

/* Time Preference Options */
.time-preference-options {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
}

.time-option {
    position: relative;
    background-color: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 10px;
    padding: 15px 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 23%;
}

.time-option input {
    position: absolute;
    opacity: 0;
}

.time-option:hover {
    border-color: var(--primary-color);
}

.time-option input:checked ~ .time-icon,
.time-option input:checked ~ .time-label {
    color: var(--primary-color);
}

.time-icon {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--text-color);
    transition: color 0.3s ease;
}

.time-label {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--heading-color);
    transition: color 0.3s ease;
}

/* Interest Categories */
.interest-categories {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-top: 10px;
}

.interest-category {
    position: relative;
    background-color: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 10px;
    padding: 15px 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.interest-category input {
    position: absolute;
    opacity: 0;
}

.interest-category:hover {
    border-color: var(--primary-color);
}

.interest-category input:checked ~ .category-icon,
.interest-category input:checked ~ .category-label {
    color: var(--primary-color);
}

.category-icon {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--text-color);
    transition: color 0.3s ease;
}

.category-label {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--heading-color);
    transition: color 0.3s ease;
}

/* Completion Animation */
.completion-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.confetti-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.completion-content {
    background-color: white;
    border-radius: 15px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    max-width: 500px;
    z-index: 11;
}

.completion-icon {
    font-size: 5rem;
    color: #2ecc71;
    margin-bottom: 20px;
}

.completion-content h2 {
    font-size: 2rem;
    margin-bottom: 10px;
    color: var(--heading-color);
}

.completion-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: var(--text-color);
}

.points-summary {
    background-color: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 30px;
}

.total-points {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--heading-color);
}

.total-points i {
    color: #f1c40f;
}

.profile-status {
    font-size: 1.1rem;
    color: var(--text-color);
}

.profile-status span {
    font-weight: 600;
    color: var(--primary-color);
}

/* Form Footer */
.form-footer {
    margin-top: 30px;
    text-align: center;
    color: var(--text-color);
}

.form-footer a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.form-footer a:hover {
    text-decoration: underline;
}

/* Error Messages */
.error-message {
    color: #e74c3c;
    font-size: 0.85rem;
    margin-top: 5px;
}

.form-group.error input,
.form-group.error select {
    border-color: #e74c3c;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .signup-info {
        padding: 30px;
    }

    .signup-form-container {
        padding: 30px;
    }

    .learning-style-options {
        grid-template-columns: 1fr;
    }

    .interest-categories {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .signup-container {
        flex-direction: column;
    }

    .signup-info,
    .signup-form-container {
        width: 100%;
    }

    .signup-info {
        padding: 30px 20px;
    }

    .benefits {
        margin-bottom: 30px;
    }

    .testimonial {
        margin-top: 30px;
    }

    .form-row {
        flex-direction: column;
        gap: 10px;
    }

    .time-preference-options {
        flex-wrap: wrap;
        gap: 10px;
    }

    .time-option {
        width: 48%;
        margin-bottom: 10px;
    }

    .interest-categories {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .step-navigation {
        overflow-x: auto;
        padding-bottom: 10px;
    }

    .step-btn {
        min-width: 60px;
    }

    .form-actions {
        flex-direction: column-reverse;
        gap: 10px;
    }

    .form-actions button {
        width: 100%;
    }

    .interest-categories {
        grid-template-columns: 1fr;
    }
}
