body {
    font-family: 'Instrument Sans', sans-serif;
    background: linear-gradient(135deg, rgba(10, 15, 26, 0.9), rgba(10, 15, 26, 0.7)), url('/images/candlestick-bg.jpg') no-repeat center center fixed;
    background-size: cover;
    background-blend-mode: overlay;
    color: #e2e8f0;
    margin: 0;
    min-height: 100vh;
    overflow-x: hidden;
}
.container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 1rem;
}
.card {
    background: rgba(30, 41, 59, 0.9);
    border-radius: 1rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    padding: 2rem;
    width: 100%;
    max-width: 400px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}
.title {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1.5rem;
    color: #2962ff;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}
.referral-message {
    background: rgba(16, 185, 129, 0.1);
    padding: 0.75rem;
    border-radius: 0.5rem;
    margin-bottom: 1.25rem;
    text-align: center;
    color: #2962ff;
    font-size: 0.875rem;
}
.form-group {
    margin-bottom: 1.25rem;
}
.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: #94a3b8;
}
.form-group input {
    width: 100%;
    padding: 0.75rem 1rem;
    background: #334155;
    border: 1px solid #475569;
    border-radius: 0.5rem;
    color: #e2e8f0;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.form-group input:focus {
    border-color: #2962ff;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
    outline: none;
}
.error-message {
    color: #f87171;
    font-size: 0.75rem;
    margin-top: 0.25rem;
}
.recaptcha-container {
    margin-bottom: 1.25rem;
    padding: 1rem;
    background: #334155;
    border: 1px solid #475569;
    border-radius: 0.5rem;
}
.recaptcha-container label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: #94a3b8;
}
.g-recaptcha {
    transform: scale(0.9);
    transform-origin: 0 0;
}
.recaptcha-error {
    color: #f87171;
    font-size: 0.75rem;
    margin-top: 0.25rem;
}
.submit-btn {
    width: 100%;
    padding: 0.75rem;
    background: #2962ff;
    color: #1e293b;
    font-weight: 600;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}
.submit-btn:hover {
    background-color: #059669;
    transform: translateY(-2px);
}
.submit-btn:disabled {
    background-color: #4b5563;
    cursor: not-allowed;
}
.login-link {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.875rem;
    color: #94a3b8;
}
.login-link a {
    color: #2962ff;
    text-decoration: none;
}
.login-link a:hover {
    text-decoration: underline;
}
.form-select {
    width: 100%;
    padding: 0.75rem 1rem;
    background: #334155;
    border: 1px solid #475569;
    border-radius: 0.5rem;
    color: #e2e8f0;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%2394a3b8' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.75rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
}

.form-select:focus {
    border-color: #2962ff;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
    outline: none;
}

@-moz-document url-prefix() {
    .form-select {
        padding-right: 1.75rem;
    }
}

select::-ms-expand {
    display: none;
}
@media (max-width: 640px) {
    .title {
        font-size: 1.5rem;
    }
    .card {
        padding: 1.5rem;
    }
    .form-group input {
        padding: 0.5rem 1rem;
    }
    .submit-btn {
        padding: 0.6rem;
    }
    .recaptcha-container {
        padding: 0.75rem;
    }
    .g-recaptcha {
        transform: scale(0.8);
    }
}