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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    min-height: 100vh;
    background: url('https://images.unsplash.com/photo-1500382017468-9049fed747ef?w=1920&q=80') center/cover no-repeat fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.container {
    width: 100%;
    max-width: 560px;
}

.card {
    background: #10101169;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.logo {
    display: block;
    width: 100%;
    max-width: 320px;
    height: auto;
    object-fit: contain;
    margin: 0 auto 32px;
}

h2 {
    color: #ffffff;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 32px;
}

.user-info {
    text-align: center;
    margin-bottom: 24px;
    color: #9ca3af;
    font-size: 0.875rem;
}

.user-info a {
    color: #ffffff;
    text-decoration: none;
    margin-left: 8px;
}

.user-info a:hover {
    text-decoration: underline;
}

.form-group {
    margin-bottom: 20px;
}

.form-divider {
    border: none;
    border-top: 1px solid #3d3d5c;
    margin: 12px 0 12px 0;
}

.form-row {
    display: flex;
    gap: 16px;
}

.form-row .form-group {
    flex: 1;
}

label {
    display: block;
    color: #d1d5db;
    font-size: 0.875rem;
    margin-bottom: 6px;
    font-weight: 500;
}

label .required {
    color: #ef4444;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
select {
    width: 100%;
    padding: 12px 16px;
    background: #ffffff;
    border: 1px solid #3d3d5c;
    border-radius: 8px;
    color: #1a1a2e;
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

input:focus,
select:focus {
    outline: none;
    border-color: #259010;
    box-shadow: 0 0 0 3px rgba(37, 144, 16, 0.2);
}

input::placeholder {
    color: #6b7280;
}

.radio-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.radio-option {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 16px;
    background: #ffffff;
    border: 1px solid #3d3d5c;
    border-radius: 8px;
    cursor: pointer;
    transition: border-color 0.2s;
}

.radio-option:hover {
    border-color: #259010;
}

.radio-option input[type="radio"] {
    margin-top: 2px;
    accent-color: #259010;
}

.radio-option .radio-content {
    flex: 1;
}

.radio-option .radio-label {
    color: #1a1a2e;
    font-weight: 500;
    display: block;
}

.radio-option .radio-description {
    color: #6b7280;
    font-size: 0.875rem;
    margin-top: 2px;
}

.btn {
    width: 100%;
    padding: 14px 24px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.btn:active {
    transform: translateY(0);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-google {
    background: #259010;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.btn-primary {
    background: #259010;
    color: #ffffff;
    margin-top: 24px;
}

.google-icon {
    width: 20px;
    height: 20px;
}

footer {
    text-align: center;
    color: #ffffff;
    font-size: 0.875rem;
    margin-top: 32px;
}

.error-message {
    background: #7f1d1d;
    border: 1px solid #ef4444;
    color: #fecaca;
    padding: 12px 16px;
    border-radius: 8px;
    margin-top: 16px;
    font-size: 0.875rem;
}

.success-message {
    text-align: center;
    padding: 40px 20px;
}

.success-message h3 {
    color: #ffffff;
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.success-message p {
    color: #9ca3af;
    margin-bottom: 24px;
}

.hidden {
    display: none !important;
}

.loading .btn-text {
    display: none;
}

.loading .btn-spinner {
    display: inline-block;
}

.btn-spinner {
    display: none;
    width: 20px;
    height: 20px;
    border: 2px solid #1a1a2e;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Google Places Autocomplete dropdown styling */
.pac-container {
    background: #2d2d44;
    border: 1px solid #3d3d5c;
    border-radius: 8px;
    margin-top: 4px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
}

.pac-item {
    padding: 10px 16px;
    color: #d1d5db;
    border-top: 1px solid #3d3d5c;
    cursor: pointer;
}

.pac-item:first-child {
    border-top: none;
}

.pac-item:hover,
.pac-item-selected {
    background: #3d3d5c;
}

.pac-item-query {
    color: #ffffff;
}

.pac-matched {
    color: #60a5fa;
}

.pac-icon {
    display: none;
}

/* iPad */
@media (max-width: 820px) {
    .container {
        max-width: 500px;
    }

    .logo {
        max-width: 280px;
    }
}

/* iPhone / small screens */
@media (max-width: 540px) {
    body {
        padding: 16px;
    }

    .container {
        max-width: 100%;
    }

    .card {
        padding: 32px 24px;
        border-radius: 12px;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .logo {
        max-width: 220px;
        margin-bottom: 24px;
    }

    h2 {
        font-size: 1.25rem;
        margin-bottom: 24px;
    }

    .btn {
        padding: 12px 20px;
    }
}
