:root {
    --bg-color: #092523;
    --accent-color: #45a29e;
    --text-color: #c5c6c7;
    --card-bg: #181818;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Segoe UI', Roboto, sans-serif;
    margin: 0;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    background: rgba(0,0,0,0.5);
}

.logo {
    font-size: 24px;
    font-weight: bold;
    letter-spacing: 1px;
    color: white;
}

.logo span { color: var(--accent-color); }

.login-btn {
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
    padding: 8px 25px;
    text-decoration: none;
    border-radius: 4px;
    transition: 0.3s;
}

.login-btn:hover {
    background: var(--accent-color);
    color: white;
}

.hero {
    text-align: center;
    padding: 60px 20px 40px;
}

.hero h1 {
    color: white;
    margin-bottom: 10px;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 0 5% 60px;
}

.video-card {
    background: var(--card-bg);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s;
}

.video-card:hover { transform: translateY(-5px); }

.preview {
    height: 180px;
    background: #333;
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
}

.video-card:hover .preview {
    animation: pan-effect 10s linear infinite;
}

@keyframes pan-effect {
    0% { background-position: 0% 50%; }
    100% { background-position: 100% 50%; }
}

.p1 { background-image: url('img/preview-1.jpg'); }
.p2 { background-image: url('img/preview-2.jpg'); }
.p3 { background-image: url('img/preview-3.jpg'); }
.p4 { background-image: url('img/preview-4.jpg'); }
.p5 { background-image: url('img/preview-5.jpg'); }
.p6 { background-image: url('img/preview-6.jpg'); }
.p7 { background-image: url('img/preview-7.jpg'); }
.p8 { background-image: url('img/preview-8.jpg'); }
.p9 { background-image: url('img/preview-9.jpg'); }
.p10 { background-image: url('img/preview-10.jpg'); }

.badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--accent-color);
    color: black;
    padding: 2px 8px;
    font-weight: bold;
    font-size: 12px;
    border-radius: 3px;
}

.info { padding: 15px; }
.info h3 { margin: 0 0 5px 0; color: white; font-size: 18px; }
.info p { margin: 0; font-size: 14px; opacity: 0.8; }

footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    background: rgba(0,0,0,0.5);
    border-top: 1px solid #1f2833;
}

.copyright {
    font-size: 14px;
    color: #888;
}

.auth-page {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.login-container {
    background: var(--card-bg);
    padding: 40px;
    border-radius: 12px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    text-align: center;
}

.login-container h2 {
    color: white;
    margin: 20px 0;
}

.input-group input {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    background: #0b0c10;
    border: 1px solid #333;
    color: white;
    border-radius: 4px;
    box-sizing: border-box;
}

.input-group input:focus {
    outline: none;
    border-color: var(--accent-color);
}

button {
    width: 100%;
    padding: 12px;
    background: var(--accent-color);
    border: none;
    color: black;
    font-weight: bold;
    cursor: pointer;
    margin-top: 10px;
    border-radius: 4px;
    transition: 0.2s;
}

button:hover { background: #35827f; }
button:disabled { opacity: 0.7; cursor: not-allowed; }

.message-box {
    display: none;
    margin-top: 20px;
    padding: 10px;
    font-size: 14px;
    text-align: left;
    border-radius: 4px;
}

.message-box.error {
    background: rgba(255, 68, 68, 0.1);
    border-left: 4px solid #ff4444;
    color: #ff4444;
}

.message-box.success {
    background: rgba(69, 162, 158, 0.1);
    border-left: 4px solid var(--accent-color);
    color: var(--accent-color);
}

.form-footer {
    margin-top: 20px;
    font-size: 13px;
}

.form-footer a { 
    color: var(--accent-color); 
    text-decoration: none; 
}
.form-footer a:hover { text-decoration: underline; }