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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f5f3f0;
    min-height: 100vh;
    padding: 20px;
    position: relative;
}

body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="2" fill="%23d4a59a" opacity="0.08"/></svg>');
    background-size: 50px 50px;
    pointer-events: none;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(212, 165, 154, 0.1);
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.header {
    background: #5b7c99;
    color: white;
    padding: 40px 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 300px;
    height: 300px;
    background: rgba(212, 165, 154, 0.15);
    border-radius: 50%;
}

.header h1 {
    margin-bottom: 10px;
    font-size: 32px;
    font-weight: 700;
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header p {
    font-size: 15px;
    opacity: 0.95;
    position: relative;
    z-index: 1;
}

.capacity-display {
    padding: 35px;
    background: #faf9f7;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.team-capacity {
    background: white;
    padding: 24px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(212, 165, 154, 0.2);
    position: relative;
    overflow: hidden;
}

.team-capacity::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: #d4a59a;
}

.team-capacity:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(124, 152, 133, 0.25);
    border-color: rgba(124, 152, 133, 0.4);
}

.team-capacity.full {
    opacity: 0.6;
}

.team-capacity h3 {
    margin-bottom: 16px;
    margin-top: 8px;
    color: #5b7c99;
    font-size: 19px;
    font-weight: 700;
}

.capacity-bar {
    height: 10px;
    background: #e5e7eb;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 12px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.06);
}

.capacity-fill {
    height: 100%;
    background: #7c9885;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1), background 0.3s;
    border-radius: 20px;
    position: relative;
    box-shadow: 0 0 10px rgba(124, 152, 133, 0.3);
}

.capacity-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.capacity-text {
    text-align: center;
    font-weight: 700;
    font-size: 15px;
    color: #5b7c99;
}

.form-container {
    padding: 30px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.required {
    color: #dc3545;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 15px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: #f9fafb;
}

.form-group input:hover,
.form-group select:hover {
    border-color: #d1d5db;
    background: white;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #7c9885;
    background: white;
    box-shadow: 0 0 0 4px rgba(124, 152, 133, 0.15), 0 4px 12px rgba(0, 0, 0, 0.05);
    transform: translateY(-2px);
}

.form-group select option:disabled {
    color: #999;
}

.form-group button {
    width: 100%;
    padding: 16px;
    background: #7c9885;
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(124, 152, 133, 0.35);
}

.form-group button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}

.form-group button:hover::before {
    left: 100%;
}

.form-group button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(124, 152, 133, 0.45);
}

.form-group button:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(124, 152, 133, 0.35);
}

.form-group button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: 0 4px 15px rgba(124, 152, 133, 0.25);
}

.message {
    padding: 16px 20px;
    border-radius: 12px;
    margin-top: 20px;
    display: none;
    font-weight: 600;
    border: 2px solid;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message.success {
    background: #d1fae5;
    color: #065f46;
    border-color: #6ee7b7;
}

.message.error {
    background: #fee2e2;
    color: #991b1b;
    border-color: #fca5a5;
}

.message.info {
    background: #dbeafe;
    color: #1e40af;
    border-color: #93c5fd;
}

.admin-link {
    text-align: center;
    padding: 25px;
    background: #faf9f7;
    border-top: 1px solid #e5e7eb;
}

.admin-link a {
    color: #5b7c99;
    text-decoration: none;
    font-weight: 700;
    font-size: 15px;
    transition: all 0.3s;
    padding: 10px 20px;
    border-radius: 8px;
    display: inline-block;
}

.admin-link a:hover {
    background: rgba(124, 152, 133, 0.1);
    color: #7c9885;
    transform: translateY(-2px);
}

@media (max-width: 600px) {
    .capacity-display {
        grid-template-columns: 1fr;
    }

    .header h1 {
        font-size: 24px;
    }

    .container {
        margin: 0;
        border-radius: 0;
    }
}
