* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --gold: #f4c430;
    --blue-glass: #2d4a6e;
    --cyan-border: #4a9eff;
    --dark-bg: #0f1824;
    --darker-bg: #1a2332;
    --text-primary: #ffffff;
    --text-secondary: #a0aec0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #0f1824 0%, #1a2332 100%);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
}

.golden-text {
    color: var(--gold);
    text-shadow: 0 0 20px rgba(244, 196, 48, 0.5);
}

.glass-container {
    background: rgba(29, 42, 62, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(74, 158, 255, 0.3);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.login-box {
    width: 100%;
    max-width: 400px;
    padding: 40px;
    text-align: center;
}

.login-box h1 {
    margin-bottom: 15px;
    font-size: 2em;
}

.subtitle {
    color: var(--text-secondary);
    margin-bottom: 30px;
    font-size: 0.95em;
}

.login-form {
    margin: 30px 0;
}

.input-group {
    margin-bottom: 20px;
    text-align: left;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-secondary);
    font-size: 0.9em;
}

.input-group input,
.input-group select {
    width: 100%;
    padding: 12px 16px;
    background: rgba(45, 74, 110, 0.4);
    border: 1px solid var(--cyan-border);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 1em;
    transition: all 0.3s ease;
}

.input-group input:focus,
.input-group select:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 10px rgba(244, 196, 48, 0.3);
}

.error-message {
    color: #ff4a4a;
    margin: 15px 0;
    font-size: 0.9em;
}

.info-text {
    color: var(--text-secondary);
    font-size: 0.85em;
    margin-top: 20px;
    line-height: 1.5;
}

.btn-primary,
.btn-secondary {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 1em;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    width: 100%;
}

.btn-primary {
    background: var(--blue-glass);
    color: var(--text-primary);
    border: 1px solid var(--cyan-border);
}

.btn-primary:hover {
    background: #3d5a7e;
    box-shadow: 0 0 20px rgba(74, 158, 255, 0.5);
    transform: translateY(-2px);
}

.btn-selected {
    background: #2d7a2d;
    color: #ffffff;
    border: 2px solid #4ade80;
    box-shadow: 0 0 15px rgba(74, 222, 128, 0.4);
}

.btn-selected:hover {
    background: #2d7a2d;
    box-shadow: 0 0 20px rgba(74, 222, 128, 0.6);
    cursor: not-allowed;
}

.btn-selected:disabled {
    opacity: 1;
    cursor: not-allowed;
}

.selected-card {
    border: 2px solid #4ade80;
    box-shadow: 0 0 20px rgba(74, 222, 128, 0.3);
    background: rgba(45, 122, 45, 0.2);
}

.btn-secondary {
    background: rgba(45, 74, 110, 0.3);
    color: var(--text-primary);
    border: 1px solid rgba(74, 158, 255, 0.3);
}

.btn-secondary:hover {
    background: rgba(45, 74, 110, 0.5);
    border-color: var(--cyan-border);
}

.navbar {
    background: rgba(29, 42, 62, 0.8);
    backdrop-filter: blur(10px);
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(74, 158, 255, 0.3);
}

.navbar h1 {
    font-size: 1.5em;
}

.nav-actions {
    display: flex;
    gap: 15px;
    align-items: center;
}

.container {
    padding: 40px;
    max-width: 1400px;
    margin: 0 auto;
}

.content-box {
    padding: 40px;
}

.content-box h2 {
    margin-bottom: 15px;
}

.content-box p {
    margin-bottom: 30px;
}

.images-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
}

.image-card {
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.image-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(74, 158, 255, 0.3);
    border-color: var(--gold);
}

.image-thumbnail {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
    border: 2px solid rgba(74, 158, 255, 0.2);
    transition: all 0.3s ease;
}

.image-card:hover .image-thumbnail {
    border-color: var(--cyan-border);
    box-shadow: 0 0 15px rgba(74, 158, 255, 0.3);
}

.image-name {
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 8px;
    word-break: break-word;
    font-size: 0.95em;
}

.image-date {
    color: var(--text-secondary);
    font-size: 0.8em;
    margin-bottom: 15px;
}

.image-card .btn-primary {
    width: 100%;
    padding: 10px 20px;
    font-size: 0.9em;
}

::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(45, 74, 110, 0.2);
}

::-webkit-scrollbar-thumb {
    background: var(--blue-glass);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #3d5a7e;
}

@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .container {
        padding: 20px;
    }
    
    .content-box {
        padding: 20px;
    }
    
    .images-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 15px;
    }
    
    .image-thumbnail {
        height: 150px;
    }
}
