:root {
    --primary-color: #2575fc;
    --secondary-color: #6a11cb;
    --text-color: #333;
    --bg-color: #f9f9f9;
    --error-color: #dc3545;
    --success-color: #28a745;
}

body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
}

header {
    background-image: linear-gradient(rgba(37, 117, 252, 0.8), rgba(106, 17, 203, 0.8)), url('/placeholder.svg?height=800&width=1200');
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    padding: 80px 20px;
    position: relative;
    overflow: hidden;
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

header * {
    position: relative;
    z-index: 2;
}

header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
}

.registration-form {
    background-color: white;
    border-radius: 10px;
    padding: 40px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.registration-form:hover {
    transform: translateY(-5px);
}

h2 {
    color: var(--primary-color);
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 10px;
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 25px;
    position: relative;
}

label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-color);
    font-weight: 500;
}

input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 5px;
    font-size: 16px;
    transition: all 0.3s ease;
}

input:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 117, 252, 0.1);
}

.players-section {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.players-section h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
}

.player-input {
    padding-left: 20px;
    border-left: 3px solid var(--secondary-color);
}

.submit-btn {
    width: 100%;
    padding: 15px;
    background-image: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
}

.submit-btn:hover {
    background-image: linear-gradient(to right, var(--secondary-color), var(--primary-color));
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.error-message {
    color: var(--error-color);
    font-size: 14px;
    margin-top: 5px;
    padding-left: 15px;
    border-left: 3px solid var(--error-color);
}

.has-error input {
    border-color: var(--error-color);
}

.alert {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 25px;
    border-radius: 5px;
    color: white;
    font-weight: 500;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
    z-index: 1000;
    transform: translateY(-100%);
    opacity: 0;
    transition: all 0.3s ease;
}

.alert.show {
    transform: translateY(0);
    opacity: 1;
}

.success {
    background-color: var(--success-color);
}

.error {
    background-color: var(--error-color);
}

@media screen and (max-width: 600px) {
    header {
        padding: 60px 20px;
    }

    header h1 {
        font-size: 2em;
    }

    .registration-form {
        padding: 20px;
    }

    .container {
        padding: 20px 15px;
    }

    .player-input {
        padding-left: 10px;
    }
}