.contest-rating {
    margin: 20px 0;
}

.contest-rating-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.contest-rating-table th,
.contest-rating-table td {
    padding: 12px;
    border: 1px solid #ddd;
    text-align: left;
}

.contest-rating-table th {
    background: #f5f5f5;
    font-weight: bold;
}

.contest-rating-table tbody tr:nth-child(even) {
    background: #f9f9f9;
}

.contest-rating-table tbody tr:hover {
    background: #f0f0f0;
}

/* Страница авторизации/регистрации */
.contest-auth-page {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.contest-auth-container {
    max-width: 450px;
    width: 100%;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    padding: 40px;
    animation: fadeInUp 0.5s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.contest-auth-title {
    font-size: 28px;
    font-weight: 700;
    color: #333;
    text-align: center;
    margin: 0 0 30px 0;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.contest-auth-form {
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.contest-form-title {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    text-align: center;
    margin: 0 0 25px 0;
}

.contest-form {
    margin: 0;
}

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

.contest-form-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #555;
    margin-bottom: 8px;
}

.contest-form-hint {
    display: block;
    font-size: 12px;
    color: #999;
    margin-top: 5px;
}

.contest-form-input {
    width: 100%;
    padding: 12px 15px;
    font-size: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-sizing: border-box;
    background: #fafafa;
}

.contest-form-input:focus {
    outline: none;
    border-color: #667eea;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.contest-checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    color: #555;
}

.contest-checkbox-label span {
    margin-left: 8px;
}

.contest-checkbox {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #667eea;
}

.contest-form-submit {
    margin-top: 25px;
}

.contest-btn {
    width: 100%;
    padding: 14px 20px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.contest-btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.contest-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

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

.contest-form-switch {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
    text-align: center;
}

.contest-form-switch p {
    margin: 0;
    font-size: 14px;
    color: #666;
}

.contest-switch-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.contest-switch-link:hover {
    color: #764ba2;
    text-decoration: underline;
}

.contest-error {
    background: #fee;
    color: #c33;
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 25px;
    border-left: 4px solid #c33;
    font-size: 14px;
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

.contest-content {
    max-width: 800px;
    margin: 50px auto;
    padding: 20px;
}

.contest-success {
    background: #d4edda;
    color: #155724;
    padding: 15px;
    border-radius: 4px;
    margin-top: 30px;
}

