* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #1a5f7a 0%, #159895 50%, #57c5b6 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

body::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 193, 7, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.3; }
    50% { transform: scale(1.1); opacity: 0.5; }
}

.container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    padding: 40px;
    max-width: 500px;
    width: 100%;
    position: relative;
    border: 2px solid rgba(87, 197, 182, 0.3);
}

.container::before {
    content: '☀️';
    position: absolute;
    top: -30px;
    right: 20px;
    font-size: 60px;
    animation: rotate 20s linear infinite;
    transition: content 0.3s;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

h1 {
    color: #1a5f7a;
    text-align: center;
    margin-bottom: 30px;
    font-size: 28px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.input-group {
    margin-bottom: 25px;
}

label {
    display: block;
    color: #1a5f7a;
    font-weight: 600;
    margin-bottom: 8px;
}

input[type="text"] {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #57c5b6;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s;
    font-family: monospace;
    letter-spacing: 2px;
    background: rgba(255, 255, 255, 0.9);
}

input[type="text"]:focus {
    outline: none;
    border-color: #159895;
    box-shadow: 0 0 0 3px rgba(21, 152, 149, 0.2);
}

button {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #159895 0%, #1a5f7a 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-bottom: 15px;
    box-shadow: 0 4px 15px rgba(21, 152, 149, 0.3);
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(21, 152, 149, 0.5);
    background: linear-gradient(135deg, #1a5f7a 0%, #159895 100%);
}

button:active {
    transform: translateY(0);
}

button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.download-btn {
    background: linear-gradient(135deg, #ffc107 0%, #ff9800 100%);
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.3);
}

.download-btn:hover {
    background: linear-gradient(135deg, #ff9800 0%, #ffc107 100%);
    box-shadow: 0 6px 20px rgba(255, 193, 7, 0.5);
}

.csv-btn {
    background: linear-gradient(135deg, #57c5b6 0%, #159895 100%);
    box-shadow: 0 4px 15px rgba(87, 197, 182, 0.3);
}

.csv-btn:hover {
    background: linear-gradient(135deg, #159895 0%, #57c5b6 100%);
    box-shadow: 0 6px 20px rgba(87, 197, 182, 0.5);
}

.logout-btn {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
    margin-top: 10px;
}

.logout-btn:hover {
    background: linear-gradient(135deg, #c0392b 0%, #e74c3c 100%);
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.5);
}

.error {
    background-color: #ffe6e6;
    color: #d32f2f;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid #d32f2f;
}

.success {
    background-color: #e8f5e9;
    color: #2e7d32;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid #2e7d32;
}

.loading {
    text-align: center;
    color: #159895;
    font-size: 18px;
    padding: 20px;
}

.spinner {
    border: 3px solid rgba(87, 197, 182, 0.3);
    border-top: 3px solid #159895;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.button-group {
    display: flex;
    flex-direction: column;
}

.logout-btn {
    margin-top: 25px;
}

.hidden {
    display: none;
}