:root {
    --primary-color: #6b7280;
    --accent-color: #9ca3af;
    --bg-color: #f3f4f6;
    --text-color: #374151;
    --text-muted: #9ca3af;
    --border-color: #e5e7eb;
    --input-bg: #ffffff;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
} 

body {
    background: var(--bg-color);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 1.5rem;
}

.container {
    width: 100%;
    max-width: 440px;
    margin: 2rem auto;
}

.login-card {
    background: var(--input-bg);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 2.5rem;
    width: 100%;
    max-width: 400px;
}

.brand {
    text-align: center;
    margin-bottom: 2.5rem;
}

.logo {
    max-width: 120px;
    height: auto;
}

h1 {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--text-color);
    margin-bottom: 0.5rem;
    letter-spacing: -0.01em;
}

.subtitle {
    font-size: 0.9375rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    line-height: 1.5;
}

.form-group {
    margin-bottom: 1.25rem;
}

input[type="text"],
input[type="email"],
input[type="tel"],
.form-select {
    width: 100%;
    padding: 0.875rem 1rem;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    font-size: 0.9375rem;
    color: var(--text-color);
    transition: all 0.2s ease;
}

input:focus,
.form-select:focus {
    outline: none;
    border-color: var(--primary-color);
    background: var(--input-bg);
}

.phone-input {
    gap: 0.75rem;
}

.country-code {
    background: var(--bg-color);
    font-weight: 500;
    border-radius: 14px;
}

.terms {
    margin: 1.5rem 0;
}

.checkbox-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.875rem;
}

.terms-text {
    color: var(--text-muted);
}

a {
    color: var(--primary-color);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

button {
    width: 100%;
    padding: 0.875rem;
    border-radius: 12px;
    font-size: 0.9375rem;
    font-weight: 500;
    background: var(--text-color);
    color: var(--input-bg);
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 1.5rem;
}

button:hover:not(:disabled) {
    background: var(--primary-color);
    transform: translateY(-1px);
}

button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.otp-section {
    margin-top: 2.5rem;
}

.otp-container {
    gap: 0.75rem;
}

.otp-input {
    width: 60px;
    height: 60px;
    border-radius: 14px;
    font-size: 1.5rem;
    font-weight: 500;
    background: var(--input-bg);
    border: 1.5px solid var(--border-color);
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.75);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.active {
    display: flex;
    opacity: 1;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 460px;
    transform: translateY(-20px);
    transition: transform 0.3s ease;
    position: relative;
}

.modal.active .modal-content {
    transform: translateY(0);
}

.modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid #E2E8F0;
}

.modal-header h2 {
    margin: 0;
    font-size: 18px;
    color: #0F172A;
    font-weight: 600;
}

.close-button {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    color: #64748B;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.close-button:hover {
    background-color: #F1F5F9;
    color: #0F172A;
}

.modal-body {
    padding: 24px;
    color: #475569;
    font-size: 14px;
    line-height: 1.6;
}

.modal-body ul {
    padding-left: 20px;
    margin: 16px 0;
}

.modal-body li {
    margin-bottom: 12px;
}

.modal-body p {
    margin: 0 0 16px 0;
}

.hidden {
    display: none;
}

.error-message {
    background: #FEF2F2;
    color: #991B1B;
    padding: 1.25rem;
    border-radius: 14px;
    margin-bottom: 1.25rem;
}

.message {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

@media (max-width: 480px) {
    .container {
        margin: 0;
    }
    
    .login-card {
        padding: 1.5rem;
        border-radius: 20px;
    }

    body {
        padding: 1rem;
    }

    h1 {
        font-size: 1.25rem;
    }
}

.form-select {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 1.5px solid var(--border-color);
    border-radius: 14px;
    background-color: var(--input-bg);
    font-size: 0.95rem;
    transition: all 0.2s ease;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%230F172A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1.25rem;
    cursor: pointer;
}

.form-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(15, 23, 42, 0.08);
}

.form-select:hover {
    border-color: var(--primary-color);
}

.welcome-header {
    position: relative;
    margin-bottom: 0.75rem;
}

.welcome-header h1 {
    margin-bottom: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.wave.animated {
    display: inline-block;
    animation: sparkle 1.5s infinite;
}

.welcome-decoration {
    position: absolute;
    bottom: -6px;
    left: 0;
    height: 3px;
    width: 60px;
    background: linear-gradient(90deg, var(--primary-color), transparent);
    border-radius: 3px;
}

.accent-text {
    color: var(--text-muted);
    font-weight: 500;
}

@keyframes sparkle {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

.footer {
    text-align: center;
    margin-top: 1.5rem;
    color: var(--text-muted);
    font-size: 0.875rem;
}

@media (max-width: 480px) {
    .footer {
        position: fixed;
        bottom: 1rem;
        left: 0;
        right: 0;
    }
}

/* Updated Select2 Custom Styling */
.select2-container--default .select2-selection--single {
    height: 48px;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    padding: 10px;
    background-color: #F8FAFC;
    transition: all 0.3s ease;
}

.select2-container--default .select2-selection--single:hover {
    border-color: #CBD5E1;
}

.select2-container--default .select2-selection--single:focus,
.select2-container--default.select2-container--open .select2-selection--single {
    border-color: #3B82F6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 28px;
    color: #1E293B;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 46px;
    right: 10px;
}

.select2-dropdown {
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: #3B82F6;
}

.select2-container--default .select2-search--dropdown .select2-search__field {
    border: 1px solid #E2E8F0;
    border-radius: 4px;
    padding: 8px;
}