/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: radial-gradient(circle at 15% 15%, #1e1b4b 0%, #0f172a 50%, #020617 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    color: #f8fafc;
}

/* Container & Card - Dark Glassmorphism Theme */
.container {
    width: 100%;
    max-width: 480px;
}

.card {
    background: rgba(30, 41, 59, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 36px 32px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), 0 0 30px rgba(99, 102, 241, 0.15);
}

.card-header {
    margin-bottom: 28px;
    text-align: center;
}

.card-header h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #f8fafc;
    margin-bottom: 6px;
    letter-spacing: -0.5px;
}

.card-header p {
    font-size: 0.925rem;
    color: #94a3b8;
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #cbd5e1;
    margin-bottom: 8px;
}

.group-label {
    margin-bottom: 10px;
}

input[type="text"],
input[type="email"],
input[type="password"] {
    width: 100%;
    padding: 12px 16px;
    font-size: 0.95rem;
    background-color: #0f172a;
    border: 1.5px solid #334155;
    border-radius: 10px;
    color: #f8fafc;
    outline: none;
    transition: all 0.25s ease;
    font-family: inherit;
}

input[type="text"]::placeholder,
input[type="email"]::placeholder,
input[type="password"]::placeholder {
    color: #64748b;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.25);
    background-color: #1e293b;
}

/* Dark Radio Option Styling */
.radio-group {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.radio-option {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.9rem;
    color: #94a3b8;
    user-select: none;
    background-color: #0f172a;
    padding: 10px 16px;
    border-radius: 10px;
    border: 1.5px solid #334155;
    transition: all 0.25s ease;
    flex: 1;
    min-width: 100px;
    justify-content: center;
}

.radio-option:hover {
    border-color: #475569;
    color: #f1f5f9;
    background-color: #1e293b;
}

/* Custom Radio Dot */
.radio-option input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid #64748b;
    border-radius: 50%;
    outline: none;
    margin-right: 8px;
    display: grid;
    place-content: center;
    transition: all 0.2s ease;
    cursor: pointer;
}

.radio-option input[type="radio"]::before {
    content: "";
    width: 10px;
    height: 10px;
    border-radius: 50%;
    transform: scale(0);
    transition: transform 0.2s ease-in-out;
    background-color: #38bdf8;
    box-shadow: 0 0 8px #38bdf8;
}

.radio-option input[type="radio"]:checked {
    border-color: #38bdf8;
}

.radio-option input[type="radio"]:checked::before {
    transform: scale(1);
}

.radio-option:has(input[type="radio"]:checked) {
    border-color: #6366f1;
    background-color: rgba(99, 102, 241, 0.15);
    color: #f8fafc;
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.2);
}

/* Checkbox Option */
.checkbox-group {
    margin-top: 24px;
    margin-bottom: 24px;
}

.checkbox-option {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 0.875rem;
    color: #94a3b8;
    user-select: none;
}

.checkbox-option input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-right: 10px;
    accent-color: #6366f1;
    cursor: pointer;
}

.checkbox-option a {
    color: #38bdf8;
    text-decoration: none;
    font-weight: 500;
}

.checkbox-option a:hover {
    text-decoration: underline;
}

/* Submit Button */
.submit-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
}

.submit-btn:hover {
    opacity: 0.95;
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(168, 85, 247, 0.5);
}

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

/* Footer Link */
.form-footer {
    text-align: center;
    margin-top: 20px;
    font-size: 0.875rem;
    color: #94a3b8;
}

.form-footer a {
    color: #38bdf8;
    text-decoration: none;
    font-weight: 600;
}

.form-footer a:hover {
    text-decoration: underline;
}

/* Error Messages */
.error-msg {
    display: block;
    color: #f87171;
    font-size: 0.8rem;
    margin-top: 4px;
}

/* Mobile Responsive adjustment */
@media (max-width: 480px) {
    .card {
        padding: 24px 20px;
    }

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