/* Login Page Styles */

.error-message {
    color: #e74c3c;
    font-size: 14px;
    margin-top: 5px;
    padding: 5px 0;
    transition: all 0.3s ease;
    display: none;
}

.error-message.show {
    display: block;
    animation: fadeIn 0.3s ease;
}

.success-message {
    color: #2ecc71;
    font-size: 16px;
    padding: 10px;
    margin-bottom: 15px;
    background-color: rgba(46, 204, 113, 0.1);
    border-left: 3px solid #2ecc71;
    border-radius: 3px;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}
.login-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.checkout-progress {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 40px;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    width: 100px;
}

.step-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #f2f2f2;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 10px;
    color: #666;
    font-size: 20px;
    position: relative;
    z-index: 2;
}

.step-label {
    font-size: 14px;
    color: #666;
    text-align: center;
}

.progress-line {
    height: 3px;
    background-color: #f2f2f2;
    width: 100px;
    margin: 0 -20px;
    position: relative;
    top: -35px;
    z-index: 1;
}

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

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

.progress-step.completed .step-icon {
    background-color: var(--color-secondary);
    color: white;
}

.progress-step.completed .step-label {
    color: var(--color-secondary);
}

.progress-line.completed {
    background-color: var(--color-secondary);
}

.login-form-container {
    max-width: 500px;
    margin: 0 auto;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 30px;
}

.login-form-container h1 {
    text-align: center;
    margin-bottom: 10px;
    color: var(--color-dark);
}

.login-subtitle {
    text-align: center;
    color: var(--color-gray);
    margin-bottom: 30px;
}

.login-tabs {
    display: flex;
    margin-bottom: 30px;
    border-bottom: 1px solid #eee;
}

.tab-btn {
    flex: 1;
    background: none;
    border: none;
    padding: 15px;
    font-size: 16px;
    font-weight: 600;
    color: var(--color-gray);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.tab-btn:after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: transparent;
    transition: all 0.3s ease;
}

.tab-btn.active {
    color: var(--color-primary);
}

.tab-btn.active:after {
    background-color: var(--color-primary);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.form-group {
    margin-bottom: 20px;
}

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

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    transition: border 0.3s ease;
}

.form-group input:focus {
    border-color: var(--color-primary);
    outline: none;
}

.password-input-container {
    position: relative;
}

.toggle-password {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
}

.remember-forgot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

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

.remember-me input {
    width: auto;
    margin-right: 8px;
}

.forgot-password {
    color: var(--color-primary);
    text-decoration: none;
    font-size: 14px;
}

.forgot-password:hover {
    text-decoration: underline;
}

.btn-login, .btn-register {
    width: 100%;
    padding: 14px;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;;
}

.terms {
    display: flex;
    align-items: flex-start;
}

.terms input {
    width: auto;
    margin-right: 10px;
    margin-top: 5px;
}

.terms label {
    font-size: 14px;
    margin-bottom: 0;
}

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

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

/* Responsive */
@media (max-width: 768px) {
    .login-form-container {
        padding: 20px;
    }
    
    .progress-step {
        width: 80px;
    }
    
    .progress-line {
        width: 60px;
    }
}

@media (max-width: 480px) {
    .login-form-container h1 {
        font-size: 24px;
    }
    
    .tab-btn {
        font-size: 14px;
        padding: 10px;
    }
    
    .progress-step {
        width: 60px;
    }
    
    .step-icon {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .step-label {
        font-size: 12px;
    }
    
    .progress-line {
        width: 40px;
        top: -30px;
    }
}
