/* Authentication Form Styles */

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    max-width: 500px;
    position: relative;
    width: 90%;
}

.close {
    position: absolute;
    right: 20px;
    top: 10px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: #aaa;
}

.close:hover {
    color: #333;
}

.auth-form h2 {
    margin-bottom: 20px;
    color: #333;
    text-align: center;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #555;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.3s;
    box-sizing: border-box;
}

.form-group input:focus {
    border-color: #2196F3;
    outline: none;
    box-shadow: 0 0 0 2px rgba(33, 150, 243, 0.2);
}

.auth-submit {
    width: 100%;
    padding: 12px;
    background-color: #2196F3;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    margin-top: 10px;
    transition: background-color 0.3s;
}

.auth-submit:hover {
    background-color: #0b7dda;
}

.auth-submit:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

.form-switch {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    color: #666;
}

.form-switch a {
    color: #2196F3;
    text-decoration: none;
    font-weight: 500;
}

.form-switch a:hover {
    text-decoration: underline;
}

.error-message {
    color: #f44336;
    font-size: 14px;
    margin-top: 5px;
    display: block;
}

/* Password strength indicator */
.password-strength {
    height: 5px;
    background-color: #eee;
    border-radius: 3px;
    margin-top: 5px;
    overflow: hidden;
}

.password-strength-meter {
    height: 100%;
    width: 0;
    transition: width 0.3s, background-color 0.3s;
}

.password-strength-weak {
    background-color: #f44336;
    width: 33%;
}

.password-strength-medium {
    background-color: #ff9800;
    width: 66%;
}

.password-strength-strong {
    background-color: #4CAF50;
    width: 100%;
}

/* Responsive styles */
@media (max-width: 600px) {
    .modal-content {
        margin: 10% auto;
        padding: 20px;
        width: 95%;
    }
    
    .auth-form h2 {
        font-size: 24px;
    }
    
    .form-group input {
        padding: 10px;
        font-size: 16px; /* Prevents zoom on iOS */
    }
}