/* Registration Form Styles */
.register_container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
}

.register_form {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    max-width: 100%;
    width: 650px;
    margin: 0 auto;
}

.register_title {
    color: #438d9a;
    text-align: center;
    margin-bottom: 30px;
    font-size: 28px;
    font-weight: 600;
}

.register_form_group {
    margin-bottom: 1.8rem;
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
}

.register_form_label {
    font-weight: 500;
    color: #374151;
    width: 150px;
    flex-shrink: 0;
    padding-right: 15px;
    text-align: right;
    padding-top: 12px;
}

.register_help_text {
    display: block;
    color: #a5abb8;
    margin-top: 0.25rem;
    font-size: 0.9rem;
    line-height: 1.3;
}

.register_help_wrap {
    
    max-width: 100%;
    overflow: hidden;
}

.register_input_container {
    flex: 1;
    max-width: 100%;
    width: 350px;
}

.register_input_container .register_help_text,
.register_input_container .register_error_message {
    margin-left: 0;
    width: 100%;
    white-space: normal;
    word-wrap: break-word;
}

/* Ensure all form controls have the same styles */
.register_form_control, 
input[type="text"], 
input[type="email"], 
input[type="password"],
input[type="tel"] {
    flex: 1;
    min-width: 0;
    width: 350px;
    padding: 0.875rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.register_form_control:focus,
input[type="text"]:focus, 
input[type="email"]:focus, 
input[type="password"]:focus,
input[type="tel"]:focus {
    border-color: #438d9a;
    outline: none;
    box-shadow: 0 0 0 3px rgba(67, 141, 154, 0.2);
}

/* Password requirements styling */
.register_password_requirements {
    width: 250px;
    margin-left: 150px;
    margin-bottom: 1.5rem;
    max-width: calc(100% - 150px);
}

.register_password_requirements ul {
    width: 250px;
    display: flex;
    flex-direction: column;
    padding-left: 0;
    list-style: none;
    margin: 0.5rem 0;
}

.register_password_requirements li {
    font-size: 0.85rem;
    color: #6b7280;
    padding-left: 24px;
    position: relative;
    line-height: 1.4;
    word-wrap: break-word;
    margin-bottom: 0.25rem;
}

.register_password_requirements li::before {
    content: "•";
    position: absolute;
    left: 8px;
    color: #438d9a;
}

/* Error message styling */
.register_error_message {
    padding: 10px;
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
    border-radius: 4px;
    margin: 10px 0;
    font-size: 0.85rem;
}

/* Toggle container for account type selection */
.register_toggle_group {
    justify-content: center;
    flex-direction: column;
    align-items: center;
    margin-bottom: 2rem;
}

.register_toggle_container {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    background: #f0f0f0;
    border-radius: 2rem;
    padding: 0.25rem;
    position: relative;
    display: flex;
    justify-content: space-between;
    height: 48px;
}

.register_toggle_help_text {
    display: block;
    color: #6b7280;
    margin-top: 0.75rem;
    font-size: 0.875rem;
    text-align: center;
}

.register_toggle_input {
    display: none;
}

.register_toggle_label {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    width: 50%;
    text-align: center;
    cursor: pointer;
    position: relative;
    z-index: 1;
    transition: color 0.3s ease;
    font-size: 0.95rem;
    color: #666;
    font-weight: 500;
}

.register_toggle_container .register_switch {
    position: absolute;
    top: 0.25rem;
    left: 0.25rem;
    width: calc(50% - 0.5rem);
    height: calc(100% - 0.5rem);
    background: #438d9a;
    border-radius: 1.5rem;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

#type-payee:checked ~ .register_switch {
    transform: translateX(calc(100% + 0.5rem));
}

#type-payor:checked ~ .register_toggle_label.left-option,
#type-payee:checked ~ .register_toggle_label.right-option {
    color: white;
}

/* Bird illustration container */
.register_bird_container {
    text-align: center;
    margin: 1rem auto 2.5rem;
    transition: all 0.3s ease;
    height: 120px;
    width: 100%;
    max-width: 500px;
}

.register_bird_img {
    max-height: 100px;
    max-width: 100%;
    transition: all 0.5s ease;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-5px); }
    100% { transform: translateY(0px); }
}

.register_bird_text {
    margin-top: 0.5rem;
    text-align: center;
    color: #438d9a;
    font-weight: 500;
    font-size: 1rem;
    transition: opacity 0.3s ease;
}

/* Button styling */
.register_btn {
    display: block;
    width: 300px;
    max-width: 100%;
    padding: 1rem;
    background: #438d9a;
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.1s ease, box-shadow 0.3s ease;
    text-align: center;
    margin: 2rem auto 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.register_btn:hover {
    background: #367b87;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.register_btn:active {
    transform: translateY(1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Login link */
.register_login_link {
    text-align: center;
    margin-top: 1.5rem;
    color: #6b7280;
    font-size: 0.95rem;
    padding-top: 1.5rem;
    border-top: 1px solid #f0f0f0;
    margin-top: 2rem;
}

.register_login_link a {
    color: #438d9a;
    text-decoration: none;
    font-weight: 500;
    margin-left: 5px;
}

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

/* Responsive adjustments */
@media (max-width: 768px) {
    .register_container {
        padding: 1rem;
        margin: 1rem auto;
    }
    
    .register_form {
        padding: 1.5rem;
    }
    
    .register_title {
        font-size: 24px;
        margin-bottom: 20px;
    }
    
    .register_bird_container {
        height: 100px;
    }
    
    /* Stack form elements vertically on mobile */
    .register_form_group {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .register_form_label {
        width: 100%;
        text-align: left;
        margin-bottom: 0.5rem;
        padding-right: 0;
    }
    
    .register_form_control {
        width: 100%;
    }
    
    .register_help_text,
    .register_error_message,
    .register_toggle_container,
    .register_bird_container,
    .register_password_requirements {
        margin-left: 0;
        width: 100%;
    }
    
    .register_btn {
        width: 100%;
        margin-left: 0;
        margin-right: 0;
    }
    
    .register_password_requirements ul {
        grid-template-columns: 1fr;
    }
}


.register_password_requirements {
    max-width: 370px;
    margin: 10px 0 20px 170px;
    padding: 10px 15px;
    background-color: #f8f9fa;
    border-left: 3px solid #438d9a;
    border-radius: 4px;
    width: calc(100% - 170px);
    box-sizing: border-box;
}

.register_password_requirements p {
    width: 250px;
    margin: 0 0 5px 0;
    font-weight: 500;
    color: #438d9a;
    font-size: 0.9rem;
}

.register_password_requirements ul {
    margin: 0;
    padding-left: 20px;
    list-style-type: none;
}

.register_password_requirements ul li {
    font-size: 0.85rem;
    line-height: 1.4;
    color: #555;
    position: relative;
    padding-left: 15px;
    margin-bottom: 2px;
}

.register_password_requirements ul li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: #438d9a;
}

@media (max-width: 768px) {
    .register_password_requirements {
        margin-left: 0;
        width: 100%;
    }
}




/* Terms Agreement Checkbox */
.terms-agreement {
    margin: 20px 0;
}

.checkbox-wrapper {
    display: flex;
    align-items: flex-start;
    margin-left: 100px;
}

.checkbox-wrapper input[type="checkbox"] {
    margin-right: 10px;
    margin-top: 3px;
}

.checkbox-wrapper label {
    font-size: 0.9rem;
    color: #444;
}

.checkbox-wrapper a {
    color: #438d9a;
    text-decoration: none;
    font-weight: 500;
    margin-right: 4px;
}

.checkbox-wrapper a:hover {
    text-decoration: underline;
}

/* Modal 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 {
    position: relative;
    background-color: #fff;
    margin: 5% auto;
    padding: 0;
    width: 80%;
    max-width: 700px;
    max-height: 80vh;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    animation: modalFadeIn 0.3s;
    display: flex;
    flex-direction: column;
}

.modal-header {
    padding: 15px 20px;
    border-bottom: 1px solid #e5e5e5;
    background-color: #438d9a;
    color: white;
    border-radius: 5px 5px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
}

.modal-close {
    color: white;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
}

.modal-body {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
}

.modal-loading {
    text-align: center;
    padding: 20px;
    color: #666;
    font-style: italic;
}

.modal-text {
    line-height: 1.6;
    color: #333;
}

.modal-footer {
    padding: 15px 20px;
    border-top: 1px solid #e5e5e5;
    text-align: right;
}

.modal-agree-btn {
    padding: 8px 16px;
    background-color: #438d9a;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.modal-agree-btn:hover {
    background-color: #7FCBDE;
}

@keyframes modalFadeIn {
    from {opacity: 0; transform: translateY(-20px);}
    to {opacity: 1; transform: translateY(0);}
}

@media (max-width: 768px) {
    .checkbox-wrapper {
        margin-left: 0;
    }
    
    .modal-content {
        width: 95%;
        margin: 10% auto;
    }
}


.logo-small {
    width: 260px;
    height: auto;
}

/* Add these CSS rules to your register.css file */

/* Disabled checkbox styling */
.checkbox-wrapper input[type="checkbox"][disabled] + label {
    color: #999;
    cursor: not-allowed;
}

.checkbox-wrapper input[type="checkbox"][disabled] {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Styling for the links with read/unread indicators */
.terms-link, .privacy-link {
    position: relative;
}

.terms-link.unread::after, 
.privacy-link.unread::after {
    content: "•";
    position: absolute;
    top: -5px;
    right: -7px;
    color: #e74c3c;
    
    font-size: 14px;
}

.terms-link.read::after, 
.privacy-link.read::after {
    content: "✓";
    position: absolute;
    top: -5px;
    right: -10px;
    color: #27ae60;
    font-size: 11px;
}

/* Enhanced loading spinner */
.modal-loading {
    text-align: center;
    padding: 30px;
    color: #666;
}

.loading-text {
    margin-top: 15px;
    font-style: italic;
}

.loading-spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid rgba(67, 141, 154, 0.1);
    border-radius: 50%;
    border-top-color: #438d9a;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}






.resend-mode-notice {
    background-color: #e3f2fd;
    border: 1px solid #1976d2;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 25px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.resend-mode-notice h3 {
    color: #1976d2;
    margin: 0 0 12px 0;
    font-size: 1.2em;
    font-weight: 600;
}

.resend-mode-notice p {
    margin: 0;
    color: #0d47a1;
    line-height: 1.5;
}

.resend-mode-notice .username-highlight {
    background-color: #bbdefb;
    padding: 2px 6px;
    border-radius: 3px;
    font-weight: 600;
}

.resend-simplified-form {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 25px;
    margin-top: 20px;
}

.resend-simplified-form .register_form_group {
    margin-bottom: 20px;
}

.resend-simplified-form .register_title {
    color: #495057;
    margin-bottom: 20px;
    text-align: center;
}

.rate-limit-notice {
    background-color: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 6px;
    padding: 12px;
    margin-bottom: 15px;
    font-size: 0.9em;
}

.rate-limit-notice strong {
    color: #856404;
}

.register_email_rate_limit {
    background-color: #e8f5e8;
    border: 1px solid #4caf50;
    border-radius: 4px;
    padding: 8px 12px;
    margin-top: 5px;
    font-size: 0.85em;
    color: #2e7d32;
}

.register_email_rate_limit .icon {
    margin-right: 5px;
}

/* Username Suggestions Styles */
.username-suggestions {
    background-color: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 6px;
    padding: 15px;
    margin-top: 10px;
    margin-bottom: 15px;
}

.username-suggestions h4 {
    color: #856404;
    margin: 0 0 10px 0;
    font-size: 1em;
    font-weight: 600;
}

.username-suggestions-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 10px 0;
}

.username-suggestion {
    background-color: #fff;
    border: 1px solid #ffc107;
    border-radius: 4px;
    padding: 6px 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9em;
    color: #856404;
    font-weight: 500;
}

.username-suggestion:hover {
    background-color: #ffc107;
    color: #fff;
    transform: translateY(-1px);
}

.username-suggestion:active {
    transform: translateY(0);
}

.suggestions-help {
    font-size: 0.85em;
    color: #6c757d;
    margin-top: 8px;
}

/* Terms Agreement Memory Indicator */
.terms-remembered {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 4px;
    padding: 8px 12px;
    margin-bottom: 10px;
    font-size: 0.9em;
    color: #155724;
}

.terms-remembered .icon {
    margin-right: 6px;
}