body {
    margin: 0;
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    height: 100vh;
    overflow: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    background-image: url('https://via.placeholder.com/1920x1080?text=Sports+Field+Background');
    background-size: cover;
    background-blend-mode: overlay;
    animation: fadeIn 1s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.container {
    text-align: center;
    color: white;
    padding: 20px;
}

header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    animation: bounce 1.5s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

header p {
    font-size: 1.2em;
    margin-bottom: 20px;
}

.form-container {
    background: rgba(255, 255, 255, 0.9);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: 500px;
    animation: slideUp 1s ease-out;
}

@keyframes slideUp {
    from { transform: translateY(50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.role-selection {
    margin-bottom: 20px;
}

.role-selection label {
    margin: 0 15px;
    font-size: 1.1em;
}

form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

input, select {
    padding: 10px;
    font-size: 1em;
    border: 1px solid #ccc;
    border-radius: 5px;
    outline: none;
    transition: border-color 0.3s;
}

input:focus, select:focus {
    border-color: #1e3c72;
}

.radio-group {
    display: flex;
    justify-content: space-around;
    margin: 10px 0;
}

#athlete-form, #coach-form {
    display: none;
}

.submit-btn {
    padding: 12px;
    font-size: 1.1em;
    border: none;
    border-radius: 5px;
    background: #ff6f61;
    color: white;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
}

.submit-btn:hover {
    background: #e65b50;
    transform: scale(1.05);
}

.error {
    color: #e65b50;
    font-size: 0.9em;
    margin-top: 10px;
    display: none;
}

footer {
    margin-top: 20px;
    font-size: 0.9em;
    color: #ccc;
}

@media (max-width: 480px) {
    .form-container {
        padding: 15px;
        max-width: 90%;
    }
    header h1 {
        font-size: 1.8em;
    }
    .role-selection label {
        margin: 0 10px;
        font-size: 1em;
    }
}