:root {
    --primary-color: #1b5e20; /* Darker pitch green */
    --pitch-light: #2e7d32;
    --pitch-dark: #276b2a;
    --chalk: rgba(255, 255, 255, 0.6);
    --card-bg: rgba(10, 15, 10, 0.85); /* Scoreboard feel */
    --text-color: #fff;
    --accent-color: #ffca28; /* Referee card yellow / gold */
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Cairo', sans-serif;
}

body {
    background-color: var(--pitch-light);
    /* Create striped pitch */
    background-image: 
        /* Center spot */
        radial-gradient(circle at 50% 50%, var(--chalk) 1%, transparent 1.2%),
        /* Center circle */
        radial-gradient(circle at 50% 50%, transparent 15%, var(--chalk) 15%, var(--chalk) 15.5%, transparent 15.5%),
        /* Center line */
        linear-gradient(to right, transparent 49.8%, var(--chalk) 49.8%, var(--chalk) 50.2%, transparent 50.2%),
        /* Grass stripes */
        repeating-linear-gradient(to right, transparent, transparent 50px, var(--pitch-dark) 50px, var(--pitch-dark) 100px);
    
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-color);
    position: relative;
    overflow: hidden;
}

/* Stadium Lights Effect */
body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 400px;
    background: radial-gradient(ellipse at 20% -20%, rgba(255,255,255,0.3) 0%, transparent 50%),
                radial-gradient(ellipse at 80% -20%, rgba(255,255,255,0.3) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.login-container {
    width: 100%;
    max-width: 480px;
    padding: 20px;
    z-index: 1;
}

.card {
    /* Scoreboard styling */
    background: var(--card-bg);
    backdrop-filter: blur(15px);
    border-radius: 15px;
    padding: 40px 30px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), inset 0 0 0 4px #444, inset 0 0 0 8px #111;
    text-align: center;
    border: 2px solid #555;
    transition: all 0.3s ease;
    position: relative;
}

/* Neon accent for scoreboard frame */
.card::after {
    content: '';
    position: absolute;
    top: -2px; left: -2px; right: -2px; bottom: -2px;
    border-radius: 17px;
    background: linear-gradient(45deg, transparent 40%, var(--accent-color) 50%, transparent 60%);
    z-index: -1;
    background-size: 200% 200%;
    animation: neon-glow 4s infinite linear;
    opacity: 0.7;
}

@keyframes neon-glow {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

.icon-container {
    background: #fff;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 20px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5), inset 0 -5px 15px rgba(0,0,0,0.3);
    animation: bounce-spin 2.5s infinite cubic-bezier(0.28, 0.84, 0.42, 1);
    position: relative;
}

/* Shadow for the bouncing ball */
.icon-container::after {
    content: '';
    position: absolute;
    bottom: -20px;
    width: 60px;
    height: 10px;
    background: rgba(0,0,0,0.5);
    border-radius: 50%;
    filter: blur(4px);
    z-index: -1;
    animation: shadow-pulse 2.5s infinite cubic-bezier(0.28, 0.84, 0.42, 1);
}

.football-icon {
    font-size: 55px;
    color: #111;
}

@keyframes bounce-spin {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-30px) rotate(180deg); }
}

@keyframes shadow-pulse {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(0.5); opacity: 0.2; }
}

h1 {
    color: var(--accent-color);
    font-size: 34px;
    margin-bottom: 10px;
    text-shadow: 0 2px 5px rgba(0,0,0,0.8);
    letter-spacing: 1px;
}

p {
    color: #bbb;
    margin-bottom: 25px;
    font-size: 17px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

input {
    width: 100%;
    padding: 15px;
    background: rgba(0, 0, 0, 0.6);
    border: 2px solid #444;
    border-radius: 8px;
    color: #00ff00; /* Digital scoreboard text */
    font-size: 28px;
    outline: none;
    transition: all 0.3s ease;
    text-align: center;
    font-family: 'Courier New', Courier, monospace;
    letter-spacing: 10px;
    text-shadow: 0 0 8px rgba(0, 255, 0, 0.6);
}

input::placeholder {
    color: rgba(0, 255, 0, 0.2);
    font-size: 20px;
    letter-spacing: 5px;
    text-shadow: none;
}

input:focus {
    border-color: #00ff00;
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.3), inset 0 0 10px rgba(0, 255, 0, 0.1);
}

button {
    background: linear-gradient(to bottom, #e53935, #c62828); /* Red card feel */
    color: white;
    border: 2px solid #ff5252;
    padding: 15px;
    border-radius: 8px;
    font-size: 22px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    text-shadow: 0 1px 3px rgba(0,0,0,0.6);
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
}

button:hover:not(:disabled) {
    background: linear-gradient(to bottom, #ef5350, #e53935);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(229, 57, 53, 0.5);
}

button:active:not(:disabled) {
    transform: translateY(2px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.error-msg {
    color: #ff5252;
    font-size: 16px;
    margin-bottom: 0;
    height: 20px;
    opacity: 0;
    transition: opacity 0.3s;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

.error-msg.visible {
    opacity: 1;
}

.hidden {
    display: none !important;
}

.platforms-group, .expiration-group {
    animation: fadeIn 0.5s ease-out forwards;
}

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

.platforms-group h2 {
    font-size: 24px;
    color: #fff;
    margin-bottom: 20px;
    border-bottom: 2px dashed #444;
    padding-bottom: 10px;
}

.buttons-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.platform-btn {
    text-decoration: none;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border-radius: 8px;
    font-size: 22px;
    font-weight: 700;
    color: white;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.4);
}

/* Sports jersey fabric texture effect */
.platform-btn::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, transparent 50%);
    z-index: 1;
}

.platform-btn i {
    z-index: 2;
    font-size: 26px;
}

.science-btn {
    background: #00695c;
    border: 2px solid #009688;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

.science-btn:hover {
    background: #00796b;
    transform: scale(1.03);
    box-shadow: 0 8px 20px rgba(0, 150, 136, 0.5);
}

.social-btn {
    background: #ef6c00;
    border: 2px solid #ff9800;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

.social-btn:hover {
    background: #f57c00;
    transform: scale(1.03);
    box-shadow: 0 8px 20px rgba(255, 152, 0, 0.5);
}

/* Contact Button for Expiration */
.contact-btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    background: #1877f2;
    color: white;
    text-decoration: none;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 20px;
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
    margin-top: 15px;
}

.contact-btn:hover {
    background: #166fe5;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(24, 119, 242, 0.4);
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-10px); }
    20%, 40%, 60%, 80% { transform: translateX(10px); }
}

/* Floating elements */
.floating-element {
    position: absolute;
    color: #fff;
    opacity: 0.15;
    z-index: 0;
    animation: drift 15s infinite linear;
    text-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

@keyframes drift {
    0% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(30px, -20px) rotate(90deg); }
    50% { transform: translate(0, -50px) rotate(180deg); }
    75% { transform: translate(-30px, -20px) rotate(270deg); }
    100% { transform: translate(0, 0) rotate(360deg); }
}
