:root {
    --primary-color: #4a90e2;
    --error-color: #e74c3c;
    --success-color: #2ecc71;
    --text-color: #333;
    --border-color: #ddd;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background-color: #f5f5f5;
    color: var(--text-color);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.auth-form {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
}

h2 {
    text-align: center;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

input {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 16px;
}

.btn {
    display: block;
    //width: 100%;
    padding: 12px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #7ab6f5;
}

.alert {
    padding: 12px;
    border-radius: 4px;
    margin-bottom: 20px;
    text-align: center;
}

.alert-error {
    background-color: #fde0dc;
    color: var(--error-color);
    border: 1px solid var(--error-color);
}

.alert-success {
    background-color: #d4efdf;
    color: var(--success-color);
    border: 1px solid var(--success-color);
}

.auth-links {
    margin-top: 20px;
    text-align: center;
    text-decoration: none;
}

.auth-links a {
    color: var(--primary-color);
    text-decoration: none;
    margin: 0 10px;
}

.auth-links a:hover {
    //text-decoration: underline;
    text-decoration: none;
}

/* Custom button styles */
.btn {
    padding: 10px 20px;
    font-size: 16px;
    border-radius: 4px;
    border: none;
    cursor: pointer;

}

.btn-primary {
    background-color: #007bff; /* Similar to Bootstrap’s primary blue */
    color: white;
    padding: 10px 20px;
    font-size: 16px;
    border-radius: 4px;
}

.btn-secondary {
    background-color: #6c757d; /* Similar to Bootstrap’s secondary gray */
    color: white;
    padding: 10px 20px;
    font-size: 16px;
    border-radius: 4px;
}

a {
    color: blue;
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: lightblue;
}



.auth-form {
    background: white;
    padding: 10px;
    border-radius: 6px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 1000px; /* Increased width to accommodate two columns */
}

.registration-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Two equal columns */
    gap: 8px;
    margin-bottom: 6px;
}

.form-section {
    background: #f8f9fa;
    padding: 6px;
    border-radius: 6px;
    border: 1px solid #eee;
    margin-bottom: 0; /* Remove bottom margin as grid handles spacing */
}

.form-section-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--primary-color);
    padding-bottom: 2px;
    border-bottom: 2px solid var(--primary-color);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 2px;
}

.full-width {
    grid-column: 1 / -1; /* Span full width */
}

.terms-container {
    grid-column: 1 / -1; /* Span full width */
    margin: 0;
    background: #f8f9fa;
    padding: 8px;
    border-radius: 6px;
    border: 1px solid #ddd;
}

   .terms-heading {
            color: #721c24;
            background-color: #f8d7da;
            border: 1px solid #f5c6cb;
            padding: 6px;
            border-radius: 4px;
            margin-bottom: 6px;
            font-size: 1.1rem;
            font-weight: 600;
        }

.terms-scroll {
    max-height: 250px;
    overflow-y: auto;
    padding: 12px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin: 12px 0;
    font-size: 0.9rem;
    line-height: 1.6;
}

.terms-checkbox {
    display: flex;
    align-items: start; /* Changed from flex-start */
    gap: 8px;
    //background: white;
    background-color: #f8d7da;
    padding: 15px;
    border-radius: 4px;
    border: 1px solid #ddd;
    margin-top: 15px;
    width: 100%; /* Ensure full width */
}

.terms-checkbox input[type="checkbox"] {
    margin: 0;
    padding: 0;
    width: 16px;
    height: 16px;
    cursor: pointer;
    margin-top: 2px; /* Small adjustment to align with text */
}

.terms-checkbox label {
    font-size: 0.9rem;
    line-height: 1.4;
    cursor: pointer;
    margin: 0;
    padding: 0;
    width: calc(100% - 24px); /* Full width minus checkbox width and gap */
}

/* Responsive design */
@media (max-width: 768px) {
    .registration-grid {
        grid-template-columns: 1fr; /* Stack columns on mobile */
    }
    
    .form-row {
        grid-template-columns: 1fr; /* Stack name fields on mobile */
    }
}


.password-field {
    position: relative;
}

.password-field .toggle-password {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #666;
    padding: 5px;
    z-index: 10;
}

.password-field input[type="password"],
.password-field input[type="text"] {
    padding-right: 35px;
}

.toggle-password:hover {
    color: var(--primary-color);
}
.website-options {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    margin: 1rem 0;
    padding: 1rem;
    background-color: #eaedfa;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.website-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.website-option:hover {
    background: #e9ecef;
}

.website-checkbox {
    width: auto !important;
    margin: 0 !important;
}

.form-control.textarea {
    width: 100%;
    min-height: 100px;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    font-size: 0.9rem;
    line-height: 1.5;
}

.full-width {
    grid-column: 1 / -1;
    margin: 1rem 0;
}

textarea#reg_text {
    width: 100%;
    min-height: 100px;
    max-height: 300px; /* Optional: prevents textarea from getting too tall */
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    font-size: 0.9rem;
    line-height: 1.5;
    resize: vertical; /* Allows vertical resizing only */
}

/* Add hover and focus states */
textarea#reg_text:hover {
    border-color: #bbb;
}

textarea#reg_text:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 2px rgba(74, 144, 226, 0.2);
}

.tax-link {
    color: #0066cc;
    text-decoration: underline;
    font-weight: 500;
}

.tax-link:hover {
    color: #004499;
}

.terms-checkbox a {
    color: inherit;
}