:root {
    --primary-blue: #a2d2ff;
    --dark-blue: #0077b6;
    --glass: rgba(255, 255, 255, 0.15);
}

body, html {
    margin: 0; padding: 0;
    font-family: 'Segoe UI', sans-serif;
    color: white; min-height: 100vh; overflow-x: hidden;
}

.main-bg {
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('her-photo.jpg');
    background-size: cover; background-position: center; background-attachment: fixed;
}

.login-page {
    background: linear-gradient(135deg, #03045e, #0077b6, #a2d2ff);
    display: flex; justify-content: center; align-items: center; height: 100vh;
}

/* Glass UI */
.glass-card {
    background: var(--glass);
    backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 2.5rem; border-radius: 30px; text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

/* Nav */
nav { display: flex; justify-content: center; gap: 15px; padding: 25px; position: relative; z-index: 100; }
nav a { color: white; text-decoration: none; padding: 10px 20px; border-radius: 20px; background: rgba(255,255,255,0.1); transition: 0.3s; }
nav a.active { background: var(--dark-blue); }

/* Hero Page */
.hero-container { height: 75vh; display: flex; justify-content: center; align-items: center; }
.glow-text { font-size: 1.5rem; letter-spacing: 10px; color: var(--primary-blue); margin: 0; }
.name-text { font-size: 5.5rem; letter-spacing: 15px; font-weight: 900; background: linear-gradient(#fff, var(--primary-blue)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }

/* Video Page */
/* Updated Video Page Container */
/* Updated for Portrait/Vertical Video */
.video-page-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start; /* Starts from top to fit nav + title + video */
    min-height: 100vh;
    padding: 10px;
    box-sizing: border-box;
}

.video-header {
    text-align: center;
    margin: 01px 0 01px 0;
}

.video-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    
    /* This allows the glow and border to be wider than the video itself */
    width: 85%; 
    max-width: 400px; /* Perfect width for a portrait video on mobile */
    height: 65vh; 
    
    background: rgba(0, 0, 0, 0.6); /* Semi-transparent black */
    backdrop-filter: blur(10px);
    border-radius: 25px;
    border: 2px solid var(--primary-blue);
    
    /* Heavy glow to make the 'slim' video feel like it fills the space */
    box-shadow: 0 0 50px rgba(162, 210, 255, 0.3), 
                inset 0 0 20px rgba(162, 210, 255, 0.2);
    overflow: hidden;
}

.video-wrapper video {
    /* This makes the video fill the height but stay centered */
    height: 100%;
    width: 100%;
    object-fit: cover; /* Keeps portrait shape without black bars */
    z-index: 2;
}

/* Add an animated 'aura' behind the video */
.video-glow {
    position: absolute;
    width: 150%;
    height: 150%;
    background: radial-gradient(circle, var(--dark-blue) 0%, transparent 60%);
    opacity: 0.5;
    z-index: 1;
    animation: rotateGlow 10s linear infinite;
}

@keyframes rotateGlow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Mobile Tweak */
@media (max-width: 600px) {
    .video-wrapper {
        width: 90%;
        height: 60vh;
    }
}

@keyframes pulseGlow {
    from { opacity: 0.1; transform: scale(0.9); }
    to { opacity: 0.3; transform: scale(1.1); }
}

/* Mobile Tweak for Very Small Screens */
@media (max-width: 480px) {
    .video-caption { font-size: 1.1rem; }
    .video-page-container { height: 80vh; justify-content: flex-start; padding-top: 20px; }
}

/* Animations */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
.fade-in { animation: fadeIn 1.5s ease forwards; }
.slide-up { animation: slideUp 1.2s ease 0.5s forwards; opacity: 0; }
.animate-pop { animation: slideUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards; }

#heartCanvas { position: fixed; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; z-index: 50; }

@media (max-width: 600px) { .name-text { font-size: 3rem; } .glow-text { font-size: 1rem; } }
/* Password Page Specific Styles */
.auth-card {
    width: 100%;
    max-width: 350px;
    padding: 3rem 2rem !important;
}

.heart-icon-top {
    font-size: 2rem;
    margin-bottom: 1rem;
    animation: floating 3s ease-in-out infinite;
}

.auth-subtitle {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-bottom: 2rem;
    letter-spacing: 1px;
}

/* Modern Input Styling */
.input-group {
    position: relative;
    margin-bottom: 2rem;
    width: 100%;
}

#password {
    background: transparent !important;
    border: none !important;
    border-bottom: 2px solid rgba(255, 255, 255, 0.3) !important;
    color: white !important;
    font-size: 1.2rem;
    text-align: center;
    letter-spacing: 5px;
    padding: 10px 0;
    width: 100%;
    outline: none;
    transition: 0.3s;
}

#password::placeholder {
    letter-spacing: 0;
    color: rgba(255, 255, 255, 0.4);
}

#password:focus {
    border-bottom-color: var(--primary-blue) !important;
}

/* The Button */
.unlock-btn {
    background: linear-gradient(135deg, var(--dark-blue), var(--primary-blue));
    color: white;
    border: none;
    padding: 15px 35px;
    border-radius: 50px;
    font-weight: 600;
    letter-spacing: 1px;
    cursor: pointer;
    transition: 0.3s;
    box-shadow: 0 4px 15px rgba(0, 119, 182, 0.4);
    width: 100%;
}

.unlock-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(162, 210, 255, 0.6);
}

/* Shake Animation for Errors */
.shake {
    animation: shake 0.4s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

@keyframes floating {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.error-text {
    font-size: 0.85rem;
    margin-top: 15px;
    min-height: 20px;
    font-weight: 500;
}