/* Register Modal Styles */
.register-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    justify-content: center;
    align-items: center;
}

.register-modal-content {
    background-color: #fff;
    border-radius: 3px;
    padding: 30px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    position: relative;
    box-sizing: border-box;
}

.register-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    color: #888;
    transition: color 0.3s;
}

.register-modal-close:hover {
    color: #333;
}

.register-modal h2 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #333;
    font-size: 24px;
    text-align: center;
}

.form-group {
    position: relative;
    margin-bottom: 20px;
    box-sizing: border-box;
}

.toggle-password {
    position: absolute;
    right: 15px; /* Adjust as needed */
    top: 70%; /* Adjust vertical position - may need tweaking depending on label/input height */
    transform: translateY(-50%);
    cursor: pointer;
    color: #aaa; /* Optional: style the icon color */
}

/* Adjust top position specifically if label is above input */
.form-group label + input + .toggle-password {
   top: 70%; /* Might need fine-tuning */
}
/* Or if you have a different structure, adjust the top value */

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #555;
}

.form-group input {
    width: 100%;
    padding: 13px;
    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: #4a90e2;
    outline: none;
}

.form-actions {
    margin-top: 25px;
}

.register-btn {
    width: 100%;
    padding: 14px;
    background-color: var(--bg-orange);
    color: white;
    border: none;
    border-radius: 3px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s;
}

.register-btn:hover {
    background-color: #f35d4f;
}

.form-footer {
    margin-top: 20px;
    text-align: center;
    color: #666;
}

.form-footer a {
    color: #3860be;
    text-decoration: none;
}

/* Mobile responsiveness */
@media (max-width: 480px) {
    .register-modal-content {
        width: 95%;
        padding: 20px;
    }
    
    .form-group input {
        padding: 10px;
    }
}