:root {
    --primary: #4A90E2;
    --primary-dark: #357ABD;
    --primary-light: #E8F4FC;
    --primary-pale: #F0F7FC;
    --accent: #5BA4E8;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --gray: #6b7280;
    --light: #f3f4f6;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, var(--primary-pale) 0%, var(--primary-light) 100%);
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.card {
    background: white;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.1);
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, #2a5f8f 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.3);
}

.btn-success {
    background: linear-gradient(135deg, var(--success) 0%, #059669 100%);
    color: white;
}

.btn-danger {
    background: linear-gradient(135deg, var(--danger) 0%, #dc2626 100%);
    color: white;
}

input, select {
    width: 100%;
    padding: 12px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 14px;
    margin-bottom: 10px;
}

input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

.login-screen {
    min-height: 100vh;
    display: flex;
    flex-direction: row;
}

.login-branding {
    flex: 1;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 50%, #2a5f8f 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px;
    color: white;
    position: relative;
    overflow: hidden;
}

.login-branding::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 60%);
    animation: pulse 15s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.3; }
}

.login-branding-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 400px;
}

.login-branding .logo-big {
    font-size: 72px;
    margin-bottom: 20px;
}

.login-branding h1 {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 10px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.login-branding .price-tag {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    padding: 10px 25px;
    border-radius: 30px;
    font-size: 20px;
    font-weight: 700;
    margin: 15px 0;
    border: 2px solid rgba(255,255,255,0.3);
}

.login-branding .slogan {
    font-size: 18px;
    opacity: 0.9;
    line-height: 1.6;
    margin-bottom: 30px;
}

.login-branding .brand-4dd {
    font-size: 24px;
    font-weight: 800;
    opacity: 0.8;
    letter-spacing: 3px;
}

.login-branding .features {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 30px;
    text-align: left;
}

.login-branding .feature {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    opacity: 0.9;
}

.login-branding .feature-icon {
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.2);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.login-form-side {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background: white;
}

.login-card {
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.login-card .logo-mobile {
    display: none;
    font-size: 48px;
    margin-bottom: 15px;
}

.login-card h2 {
    font-size: 28px;
    color: var(--primary);
    margin-bottom: 10px;
}

.login-card .subtitle {
    color: #666;
    margin-bottom: 30px;
    font-size: 15px;
}

.login-card input {
    padding: 16px;
    font-size: 16px;
    text-align: center;
}

.login-card .btn {
    width: 100%;
    padding: 16px;
    font-size: 16px;
    margin-top: 10px;
}

.login-card .help-text {
    margin-top: 20px;
    font-size: 13px;
    color: #999;
}

@media (max-width: 900px) {
    .login-screen {
        flex-direction: column;
    }
    
    .login-branding {
        flex: none;
        padding: 40px 20px;
        min-height: 45vh;
    }
    
    .login-branding .logo-big {
        font-size: 56px;
    }
    
    .login-branding h1 {
        font-size: 28px;
    }
    
    .login-branding .features {
        display: none;
    }
    
    .login-form-side {
        flex: 1;
        border-radius: 30px 30px 0 0;
        margin-top: -30px;
        padding: 30px 20px;
    }
    
    .login-card .logo-mobile {
        display: block;
    }
}

.slots-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.slots-table th {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 12px 8px;
    text-align: center;
}

.slots-table td {
    border: 1px solid #e5e7eb;
    padding: 8px;
    text-align: center;
    vertical-align: middle;
}

.slot-cell {
    min-height: 60px;
    cursor: pointer;
    transition: all 0.2s;
    border-radius: 8px;
    padding: 8px;
}

.slot-cell:hover {
    background: var(--primary-light);
    transform: scale(1.02);
}

.slot-cell.voted {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    border: 2px solid var(--success);
}

.slot-cell.has-votes {
    background: #fef3c7;
}

.vote-count {
    font-size: 24px;
    font-weight: 800;
    color: var(--primary);
}

.vote-label {
    font-size: 10px;
    color: var(--gray);
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(4px);
}

.modal {
    background: white;
    padding: 30px;
    border-radius: 20px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    animation: modalIn 0.3s ease;
}

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

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 10px;
}

.header h1 {
    color: var(--primary-dark);
}

.credits-badge {
    background: linear-gradient(135deg, var(--warning) 0%, #d97706 100%);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

@media (max-width: 768px) {
    .slots-table {
        font-size: 12px;
    }
    
    .slot-cell {
        padding: 4px;
        min-height: 50px;
    }
    
    .vote-count {
        font-size: 18px;
    }
    
    .header h1 {
        font-size: 20px;
    }
}
