/* Register Page Styles */
body {
    margin: 0;
    padding: 0;
    background: url('../assets/images/bgcottahall.png') center/cover no-repeat fixed;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(3px);
    z-index: -1;
}

.main-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}

.register-container {
    max-width: 1000px;
    width: 100%;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    position: relative;
    box-sizing: border-box;
    overflow: hidden;
}

.register-header {
    background: linear-gradient(135deg, #7338A0 0%, #5a2d80 100%);
    color: white;
    padding: 2rem;
    text-align: center;
    position: relative;
}

.register-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="white" opacity="0.1"/><circle cx="10" cy="60" r="0.5" fill="white" opacity="0.1"/><circle cx="90" cy="40" r="0.5" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.register-header .logo-image {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin-bottom: 1rem;
    object-fit: contain;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 3px solid rgba(255, 255, 255, 0.2);
    position: relative;
    z-index: 1;
}

.register-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
    position: relative;
    z-index: 1;
}

.register-header p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin: 0;
    position: relative;
    z-index: 1;
}

.register-body {
    padding: 2.5rem;
}

.form-sections {
    display: grid;
    gap: 2rem;
}

.form-section {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 1.5rem;
    border-left: 4px solid #7338A0;
}

.section-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.section-title i {
    color: #7338A0;
    font-size: 1.1rem;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.25rem;
}

.form-group label .required {
    color: #e74c3c;
    margin-left: 2px;
}

.form-group input,
.form-group select {
    padding: 0.875rem;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 0.9rem;
    background: #fff;
    color: #333;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    border-color: #7338A0;
    outline: none;
    box-shadow: 0 0 0 3px rgba(115, 56, 160, 0.1);
    transform: translateY(-1px);
}

.form-group input::placeholder {
    color: #adb5bd;
}

.checkbox-section {
    background: #e8f4fd;
    border-radius: 12px;
    padding: 1rem;
    border: 2px solid #bee5eb;
    margin-top: 1rem;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.checkbox-group input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 22px;
    height: 22px;
    border: 2px solid #7338A0;
    border-radius: 6px;
    background: white;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
    flex-shrink: 0;
    margin: 0;
}

.checkbox-group input[type="checkbox"]:hover {
    border-color: #5a2d80;
    box-shadow: 0 0 0 3px rgba(115, 56, 160, 0.1);
}

.checkbox-group input[type="checkbox"]:checked {
    background: linear-gradient(135deg, #7338A0, #5a2d80);
    border-color: #7338A0;
}

.checkbox-group input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 14px;
    font-weight: bold;
}

.checkbox-group label {
    margin: 0;
    font-size: 0.9rem;
    cursor: pointer;
    flex: 1;
    font-weight: 500;
    color: #333;
    user-select: none;
}

.form-actions {
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.submit-button {
    background: linear-gradient(135deg, #7338A0 0%, #5a2d80 100%);
    color: white;
    padding: 1rem 2.5rem;
    font-size: 1rem;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(115, 56, 160, 0.3);
    position: relative;
    overflow: hidden;
    margin-bottom: 0 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.submit-button i {
    font-size: 0.9rem;
    margin: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.submit-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.submit-button:hover::before {
    left: 100%;
}

.submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(115, 56, 160, 0.4);
}

.cancel-button {
    background: #6c757d;
    color: white;
    padding: 1rem 2rem;
    font-size: 1rem;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;

    box-shadow: 0 4px 15px rgba(108, 117, 125, 0.3);
    text-align: center;
    line-height: 1;
    white-space: nowrap;
}

.cancel-button i {
    margin: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.cancel-button:hover {
    background: #5a6268;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(108, 117, 125, 0.4);
}

.switch-prompt a {
    color: #7338A0;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.switch-prompt a:hover {
    color: #5a2d80;
    text-decoration: underline;
}

/* OTP Modal Styles for Register Page */
#otp-modal .otp-header {
    text-align: center;
    margin-bottom: 2rem;
}

#otp-modal .modal-card-title {
    color: #7338A0;
    font-weight: 700;
}

#otp-modal .modal-card-subtitle {
    color: #666;
    font-size: 1rem;
}

#otp-modal .otp-input-container {
    justify-content: center;
    margin-bottom: 2rem;
}

#otp-modal .otp-input {
    width: 50px;
    height: 50px;
    text-align: center;
    font-size: 1.5rem;
    border: 2px solid #7338A0;
    border-radius: 10px;
    margin: 0 5px;
}

#otp-modal .submit-button.modal-green-btn {
    width: 100%;
    padding: 14px 20px;
    background: linear-gradient(135deg, #7338A0 0%, #5a2d80 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 0 auto 16px auto !important;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-align: center;
}

#otp-modal .switch-prompt {
    text-align: center;
    margin-top: 1.5rem;
    color: #666;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .register-container {
        margin: 1rem;
        border-radius: 15px;
    }

    .register-header {
        padding: 1.5rem;
    }

    .register-header h1 {
        font-size: 2rem;
    }

    .register-body {
        padding: 1.5rem;
    }

    .form-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .form-actions {
        flex-direction: column;
        align-items: center;
    }

    .submit-button,
    .cancel-button {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .main-content {
        padding: 1rem 0.5rem;
    }

    .register-header .logo-image {
        width: 80px;
        height: 80px;
    }

    .register-header h1 {
        font-size: 1.8rem;
    }

    .form-section {
        padding: 1rem;
    }

    .form-group input,
    .form-group select {
        padding: 0.75rem;
        font-size: 0.85rem;
    }
}

/* Override any conflicting styles from other CSS files */
.register-container .submit-button,
.register-container button[type="submit"],
.register-container .modal-green-btn {
    margin-bottom: 0 !important;
}

/* Specific overrides for OTP modal */
#otp-modal .submit-button,
#otp-modal button[type="submit"],
#otp-modal .modal-green-btn {
    margin: 0 auto 16px auto !important;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* Mobile responsive for OTP modal button */
@media (max-width: 768px) {
    #otp-modal .submit-button,
    #otp-modal button[type="submit"],
    #otp-modal .modal-green-btn {
        width: 100%;
        padding: 14px 20px;
        font-size: 16px;
        margin: 0 auto 16px auto !important;
    }
}

@media (max-width: 480px) {
    #otp-modal .submit-button,
    #otp-modal button[type="submit"],
    #otp-modal .modal-green-btn {
        width: 100%;
        padding: 12px 16px;
        font-size: 14px;
        margin: 0 auto 16px auto !important;
    }
}

@media (max-width: 360px) {
    #otp-modal .submit-button,
    #otp-modal button[type="submit"],
    #otp-modal .modal-green-btn {
        width: 100%;
        padding: 12px 16px;
        font-size: 14px;
        margin: 0 auto 16px auto !important;
    }
}
/* Terms
 Modal Styles */
.terms-modal-content {
    max-width: 800px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.terms-header {
    text-align: center;
    padding: 1.5rem;
    border-bottom: 2px solid #e9ecef;
    flex-shrink: 0;
}

.terms-header .modal-card-image {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-bottom: 1rem;
    object-fit: contain;
}

.terms-header .modal-card-title {
    color: #7338A0;
    font-weight: 700;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.terms-header .modal-card-subtitle {
    color: #666;
    font-size: 0.95rem;
}

.terms-content {
    flex: 1;
    overflow-y: auto;
    padding: 2rem;
    background: #f8f9fa;
    font-size: 0.9rem;
    line-height: 1.6;
}

.terms-content h3 {
    color: #7338A0;
    font-size: 1.3rem;
    margin-bottom: 1rem;
    margin-top: 0;
}

.terms-content h4 {
    color: #333;
    font-size: 1.1rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.terms-content p {
    margin-bottom: 1rem;
    color: #555;
}

.terms-content ul {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.terms-content ul li {
    margin-bottom: 0.5rem;
    color: #555;
}

.terms-content .last-updated {
    font-style: italic;
    color: #888;
    font-size: 0.85rem;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #dee2e6;
}

.terms-footer {
    padding: 1.5rem;
    border-top: 2px solid #e9ecef;
    background: white;
    flex-shrink: 0;
}

.terms-footer .checkbox-group {
    margin-bottom: 1rem;
    background: #e8f4fd;
    padding: 1rem;
    border-radius: 8px;
    border: 2px solid #bee5eb;
}

.terms-footer .submit-button {
    width: 100%;
    margin: 0;
}

.terms-footer .submit-button:disabled {
    background: #ccc;
    cursor: not-allowed;
    box-shadow: none;
}

.terms-footer .submit-button:disabled:hover {
    transform: none;
    box-shadow: none;
}

/* Scrollbar styling for terms content */
.terms-content::-webkit-scrollbar {
    width: 8px;
}

.terms-content::-webkit-scrollbar-track {
    background: #e9ecef;
    border-radius: 4px;
}

.terms-content::-webkit-scrollbar-thumb {
    background: #7338A0;
    border-radius: 4px;
}

.terms-content::-webkit-scrollbar-thumb:hover {
    background: #5a2d80;
}

/* Responsive adjustments for terms modal */
@media (max-width: 768px) {
    .terms-modal-content {
        max-width: 95%;
        max-height: 85vh;
    }
    
    .terms-content {
        padding: 1.5rem;
    }
    
    .terms-header {
        padding: 1rem;
    }
    
    .terms-footer {
        padding: 1rem;
    }
}
