/* Modern Registration Popup Styling */
:root {
    --primary-color: #25402B;
    --primary-light: #345745;
    --primary-dark: #1a2c1e;
    --accent-color: #D43E15;
    --text-color: #333;
    --light-text: #666;
    --border-color: #ddd;
    --background-light: #f8f8f8;
    --success-color: #4CAF50;
    --error-color: #F44336;
    --font-family: 'Open Sans', sans-serif;
    --border-radius: 8px;
    --box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Overlay and popup container */
#popup-overlay {
    background-color: rgba(0, 0, 0, 0.7);
    transition: opacity 0.3s ease;
}

#register-popup {
    max-width: 400px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 0;
    overflow: hidden;
}

/* Header */
#register-popup .popup-close {
    top: 15px;
    right: 15px;
    font-size: 20px;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

#register-popup .popup-close:hover {
    opacity: 1;
}

#register-popup .popup-title {
    background-color: var(--primary-color);
    color: white;
    padding: 15px 20px;
    margin: 0;
    font-size: 18px;
    border-top-left-radius: var(--border-radius);
    border-top-right-radius: var(--border-radius);
    text-align: center;
    font-weight: 600;
}

/* Form Container */
#register-popup form {
    padding: 20px 20px 10px;
}

/* Form Fields */
#register-popup .form-group {
    margin-bottom: 16px;
}

#register-popup .form-label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: var(--text-color);
    font-size: 14px;
}

#register-popup .form-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

#register-popup .form-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 64, 43, 0.1);
    outline: none;
}

/* Form Hint Text */
#register-popup .form-hint {
    font-size: 12px;
    color: var(--light-text);
    margin-top: 5px;
    line-height: 1.4;
}

/* Password Toggle */
#register-popup .password-input-container {
    position: relative;
}

#register-popup .password-toggle {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: var(--light-text);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Checkbox styling */
#register-popup .checkbox-label {
    display: flex;
    align-items: flex-start;
    font-size: 13px;
    color: var(--text-color);
    line-height: 1.4;
    margin-bottom: 5px;
}

#register-popup .form-checkbox {
    margin-right: 8px;
    margin-top: 3px; /* Align with the first line of text */
}

/* Terms checkbox specific styling */
#register-popup .terms-container {
    display: flex;
    flex-direction: column;
    margin-bottom: 15px;
}

#register-popup .terms-checkbox {
    display: flex;
    align-items: flex-start;
}

#register-popup .form-checkbox {
    margin-top: 3px;
    margin-right: 8px;
    min-width: 15px;
}

#register-popup .terms-text {
    display: inline-block;
    font-size: 13px;
    line-height: 1.5;
    margin-left: 0;
    flex: 1;
}

#register-popup .terms-text a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    white-space: nowrap;
}

#register-popup .terms-text a:hover {
    text-decoration: underline;
}

/* Links styling */
#register-popup .link-text {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

#register-popup .link-text:hover {
    color: var(--primary-light);
    text-decoration: underline;
}

/* Button styling */
#register-popup .popup-button {
    width: 100%;
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 15px;
    border-radius: 4px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
    margin-top: 8px;
    margin-bottom: 5px;
}

#register-popup .popup-button:hover {
    background-color: var(--primary-light);
}

#register-popup .popup-button:active {
    background-color: var(--primary-dark);
}

/* Help link */
#register-popup form .help-link {
    text-align: center;
    margin: 0;
    padding-top: 2px;
}

#register-popup form .help-link .popup-link {
    font-size: 13px;
    padding: 2px 0;
    margin: 0;
    display: inline-block;
}

/* Back button styling - specific to ensure only one visible */
#register-popup form .back-button-container {
    text-align: center;
    margin: 0;
    padding: 0;
}

/* Hide all back buttons except the one in the back-button-container */
#register-popup .popup-back:not(.back-button-container .popup-back) {
    display: none !important;
}

#register-popup form .back-button-container .popup-back {
    color: #000;
    font-size: 13px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    text-decoration: none;
    font-weight: 500;
    padding: 2px 0;
}

#register-popup form .back-button-container .popup-back:hover {
    color: #25402b;
}

#register-popup form .back-button-container .popup-back i {
    margin-right: 8px;
    font-size: 14px;
    transition: transform 0.2s ease;
}

#register-popup form .back-button-container .popup-back:hover i {
    transform: translateX(-3px);
}

/* Responsive adjustments */
@media (max-width: 480px) {
    #register-popup {
        width: 90%;
        max-width: none;
    }
    
    #register-popup form {
        padding: 15px 15px 5px;
    }
    
    #register-popup .popup-title {
        font-size: 16px;
        padding: 12px 15px;
    }
    
    #register-popup .form-group {
        margin-bottom: 12px;
    }
} 