/* General Setup */
* { margin: 0; padding: 0; box-sizing: border-box; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; }
html { scroll-behavior: smooth; }
body { color: #333; overflow-x: hidden; background: linear-gradient(-45deg, #eef2f3, #d7e1ec, #e0e7f0, #d1dde8); background-size: 400% 400%; animation: gradientBG 15s ease infinite; }
@keyframes gradientBG { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }

/* --- Shared Modal Styles --- */
.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.6); z-index: 1000; display: none; justify-content: center; align-items: center; padding: 20px; }
.modal-container { background-color: white; padding: 30px 40px; border-radius: 24px; width: 100%; max-width: 480px; position: relative; box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1); display: flex; flex-direction: column; }
.modal-header, .register-header { text-align: center; margin-bottom: 25px; flex-shrink: 0; }
.modal-header h2, .register-header h2 { font-size: 24px; font-weight: 600; }
.close-btn { position: absolute; top: 20px; right: 25px; font-size: 28px; color: #aaa; background: none; border: none; cursor: pointer; text-decoration: none; z-index: 10; }
.input-group { position: relative; margin-bottom: 20px; }
.input-group input, .input-group select { width: 100%; padding: 14px; border: 1px solid #e0e0e0; border-radius: 12px; font-size: 16px; background-color: #f7f7f7; outline: none; -webkit-appearance: none; -moz-appearance: none; appearance: none; }
.input-group select { background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23007CB2%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22/%3E%3C/svg%3E'); background-repeat: no-repeat; background-position: right 1rem center; background-size: .65em auto; }
.input-group input:focus, .input-group select:focus { border-color: #007bff; }
.server-error { color: #e53935; font-size: 13px; text-align: center; min-height: 18px; margin-bottom: 10px; }
.success-message { color: #2e7d32; }
.modal-links { display: flex; justify-content: space-between; font-size: 13px; margin-top: 15px; }
.modal-links a { color: #007bff; font-weight: 600; text-decoration: none; }

/* --- Login Modal Specific Styles --- */
#login-modal .modal-login-btn { width: 100%; background-color: #007bff; color: white; border: none; padding: 12px; border-radius: 8px; font-size: 16px; font-weight: bold; cursor: pointer; }

/* --- Scrollable Register Modal --- */
#register-modal {
    max-height: 90vh; /* Set a max height for the modal */
}
#register-form {
    display: flex;
    flex-direction: column;
    overflow: hidden; /* Hide overflow from the form itself */
}
.form-content {
    overflow-y: auto; /* Make this container scrollable */
    flex-grow: 1; /* Allow it to take up available space */
    padding-right: 15px; /* Add space for the scrollbar */
    margin-right: -15px; /* Hide the scrollbar visually if possible */
}
.password-group .toggle-password { position: absolute; top: 50%; right: 15px; transform: translateY(-50%); background: none; border: none; color: #999; cursor: pointer; font-size: 18px; }
.checkbox-group { display: flex; align-items: center; margin-bottom: 20px; flex-shrink: 0; }
.checkbox-group input[type="checkbox"] { width: 20px; height: 20px; margin-right: 10px; flex-shrink: 0; }
.checkbox-group label { font-size: 14px; color: #666; }
.checkbox-group a { color: #007bff; text-decoration: none; }
.register-btn { width: 100%; padding: 15px; border: none; border-radius: 12px; font-size: 16px; font-weight: 600; margin-top: 10px; cursor: pointer; flex-shrink: 0; }
.register-btn { background-color: #e0e0e0; color: #aaa; cursor: not-allowed; }
.register-btn:not(:disabled) { background-color: #007bff; color: white; cursor: pointer; }
.login-link { text-align: center; margin-top: 25px; font-size: 14px; flex-shrink: 0; }
.login-link a { color: #007bff; font-weight: 600; text-decoration: none; }

/* --- Other page styles (nav, hero, footer etc.) --- */
nav { display: flex; justify-content: space-between; align-items: center; padding: 20px 60px; } .nav-left { display: flex; align-items: center; gap: 25px; } .logo { font-weight: bold; font-size: 24px; } nav a { text-decoration: none; color: #555; font-size: 14px; } .nav-login-btn { background-color: #fff; color: #333; border: 1px solid #ddd; padding: 8px 24px; border-radius: 20px; cursor: pointer; font-weight: bold; } .hero { text-align: center; padding: 100px 20px; } .hero h1 { font-size: 48px; max-width: 600px; margin: 0 auto 30px; line-height: 1.3; } .main-login-btn { background-color: #007bff; color: white; border: none; padding: 14px 40px; border-radius: 8px; font-size: 16px; cursor: pointer; } .features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; max-width: 1000px; margin: 40px auto 80px; padding: 0 20px; } .feature-card { background-color: #fff; padding: 30px; border-radius: 12px; border: 1px solid #e7e7e7; } .feature-card h3 { margin-bottom: 15px; font-size: 20px; } .feature-card p { font-size: 14px; line-height: 1.6; color: #666; } #site-footer { position: relative; background-color: #1c1c1c; color: #a9a9a9; font-size: 14px; } .footer-swoosh { width: 100%; background-color: #e6edf2; } .footer-swoosh svg { display: block; width: 100%; fill: #1c1c1c; } .footer-content { max-width: 1200px; margin: 0 auto; padding: 40px 60px; } .footer-top { margin-bottom: 60px; } .footer-logo { color: #e0e0e0; font-size: 28px; font-weight: bold; } .footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; } .footer-links nav { display: flex; gap: 25px; margin-bottom: 15px; } .footer-links a { color: #e0e0e0; text-decoration: none; } .copyright { font-size: 12px; } .footer-controls { display: flex; gap: 10px; } .control-btn { background-color: transparent; border: 1px solid #555; color: #a9a9a9; width: 40px; height: 40px; border-radius: 8px; cursor: pointer; font-size: 16px; display: flex; justify-content: center; align-items: center; }
