@charset "UTF-8";
/* CSS Document */

/* GLOBAL PREFERENCE: No borders on any container-like elements */
.login-modal-box, .peek-container, .glass-panel, .topic-column {
    border: none !important;
    outline: none !important;
}

/* 1. Global Page Styles */
body {
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: url('images/milky-way.jpg') no-repeat center center fixed;
    background-size: cover;
    background-color: #0f1217;
    font-family: Georgia, serif;
    overflow-x: hidden;
}

/* 2. Header Image Styling */
.header-image {
    display: block;
    margin: 40px auto 20px auto;
    max-width: 800px;
    width: 90%;
}

/* 3. Login Button Styling */
.login-nav-container {
    position: absolute;
    top: 20px;
    right: 40px; 
    z-index: 10;
}

.portal-login-trigger {
    background-color: #000000;
    color: #FFFFFF;
    border: none;
    border-radius: 13px;
    padding: 8px 16px;
    cursor: pointer;
    font-family: Georgia, serif;
    font-size: 13px;
    text-transform: capitalize;
}

.portal-login-trigger:hover {
    background-color: #333333;
}

/* 4. Modal & Glass Styles */
.login-modal-overlay {
    display: none; 
    position: absolute; /* Changed from fixed */
    top: 60px;          /* Adjusts distance from top */
    right: 40px;        /* Aligns it near your login button */
    z-index: 1000;
    width: 300px;       /* Keeps it from spanning the whole page */
}

/* 4. Modal & Glass Styles */
.login-modal-box, .glass-panel {
    background: rgba(255, 255, 255, 0.15) !important;
    backdrop-filter: blur(3px) !important;
    -webkit-backdrop-filter: blur(3px) !important;
    border: 0 !important;           /* Explicitly sets border to zero */
    outline: none !important;       /* Removes any browser-default focus outline */
    padding: 30px !important;
    border-radius: 20px !important;
    width: 90% !important;
    max-width: 400px !important;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5) !important;
    color: #ffffff !important;
}

.login-modal-box a {
    color: #4a90e2;
    text-decoration: none;
    transition: color 0.3s ease;
}

.login-modal-box a:hover {
    color: #7fb3ff;
    text-decoration: underline;
}

.close-modal-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 24px;
    color: #888;
    cursor: pointer;
    font-family: Arial, sans-serif;
    transition: color 0.3s;
}

.close-modal-btn:hover {
    color: #fff;
}

/* 5. Main Content Area */
.content-area {
    flex: 1;
    padding: 20px;
}

/* 6. Footer Styles */
.site-footer {
    padding: 20px;
    text-align: center;
    color: white;
    font-family: Georgia, serif;
    font-size: 14px;
    background: transparent;
    width: 100%;
    margin-top: auto;
}

/* 7. Peek Window Styles */
.peek-wrapper {
    position: relative;
}

.peek-container {
    display: none; 
    position: absolute;
    top: -50px; 
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    max-width: 1000px; 
    height: 60vh;
    background: rgba(0, 0, 0, 0.9);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    overflow: hidden; /* This keeps the static image cropped nicely */
    z-index: 9999;
    
    /* REMOVED: pointer-events: none; */
    /* ADDED: */
    cursor: pointer; 
}

.peek-container {
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.peek-container:hover {
    opacity: 0.9;
}


.peek-wrapper:hover .peek-container {
    display: block;
    pointer-events: auto;
}

.overlay-blocker {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    z-index: 1000;
    cursor: pointer;
}

/* Ensure the icon is always on top */
#togglePassword {
    z-index: 100; /* Force it to the front */
    display: inline-block;
    padding: 10px; /* Gives it a click-target area */
}

/* Give the input field space on the right so text doesn't overlap the eye */
#passwordField {
    padding-right: 40px !important; /* Forces text to stop before the eye */
}

/* 8. Standardize Modal Inputs - UPDATED */
.login-modal-box input:not([type="checkbox"]) {
    display: block;        
    width: 100% !important;
    margin: 0 auto 10px auto !important; 
    padding: 10px !important;
    box-sizing: border-box !important; 
    border: none !important;
    border-radius: 10px !important;
}

/* --- THE MASTER GLASS STYLE --- */
.glass-master {
    background: rgba(255, 255, 255, 0.1); 
    backdrop-filter: blur(1px); /* Increased blur slightly for a nicer look */
    -webkit-backdrop-filter: blur(1px);
    border-radius: 20px;
    padding: 30px;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* --- UNIFYING THE LOOK --- */
.login-modal-box, .topic-column {
    background: rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(1px) !important;
    -webkit-backdrop-filter: blur(1px) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}