/* ==========================================================================
   GLOBAL STYLES & BASE LAYOUT
   ========================================================================== */

   body {
    margin: 0;
    padding: 0 0 80px 0;
    background-color: #1a1a1a;
    color: #fff;
    font-family: 'Orbitron', Tahoma, sans-serif;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
    overflow: hidden;
    position: relative;
    box-sizing: border-box;
}

h1 {
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 10px;
    letter-spacing: 2px;
}


/* ==========================================================================
   NAVIGATION ELEMENTS
   ========================================================================== */

/* Top Navigation Links */
.login-link,
.back-link {
    position: absolute;
    top: 30px;
    z-index: 10;
}

.login-link {
    right: 30px;
}

.back-link {
    left: 30px;
}

.login-link a,
.back-link a {
    color: #fff;
    text-decoration: none;
    font-family: 'Orbitron', Tahoma, sans-serif;
    font-size: 16px;
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

.login-link a:hover,
.back-link a:hover {
    opacity: 1;
    text-decoration: underline;
}


/* ==========================================================================
   MAIN PAGE STYLES
   ========================================================================== */

.container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    width: 100%;
    position: relative;
    margin-top: -10vh;
}

.logo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 10px;
    position: relative;
}

/* Input Box Styles */
.input-container {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background-color: #3a3a3a;
    border-radius: 100px;
    padding: 0;
    width: 500px;
    max-width: 90vw;
}

.main-input {
    flex: 1;
    background: transparent;
    border: none;
    color: #fff;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    padding: 16px 20px 16px 4px;
    outline: none;
}

.main-input::placeholder {
    color: #888;
    opacity: 1;
}

.plus-icon {
    background: transparent;
    border: none;
    color: #888;
    font-size: 24px;
    cursor: pointer;
    padding: 16px 12px 16px 20px;
    border-radius: 100px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: auto;
    height: auto;
    line-height: 1;
}

.plus-icon:hover {
    color: #fff;
}


/* ==========================================================================
   LOGIN PAGE STYLES
   ========================================================================== */

.login-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    width: 100%;
    position: relative;
}

.login-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 400px;
    width: 90%;
}

.login-header {
    text-align: center;
    margin-bottom: 40px;
}

.login-header h1 {
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.login-header p {
    color: #888;
    font-size: 18px;
    margin: 10px;
    font-family: Arial, Helvetica, sans-serif;
}

.login-form {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.login-form form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
}

/* Form Elements */
.form-group {
    width: 100%;
}

.form-group input {
    width: 100%;
    background-color: #3a3a3a;
    border: 2px solid #555;
    border-radius: 8px;
    padding: 14px 16px;
    color: #fff;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    outline: none;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.form-group input:focus {
    background-color: #3a3a3a;
    border-color: #777;
}

.form-group input::placeholder {
    color: #888;
}

/* Alert Messages */
.alert {
    width: 100%;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    text-align: center;
    box-sizing: border-box;
}

.alert-success {
    background-color: #2d5a2d;
    color: #90ee90;
    border: 1px solid #4a8a4a;
}

.alert-error {
    background-color: #5a2d2d;
    color: #ff9090;
    border: 1px solid #8a4a4a;
}

.alert-info {
    background-color: #2d4a5a;
    color: #90c8ee;
    border: 1px solid #4a6a8a;
}

/* Signup Link */
.signup-link {
    text-align: center;
    margin-top: 20px;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    color: #888;
}

.signup-link p {
    margin: 0;
}

.signup-link a {
    color: #fff;
    text-decoration: none;
    opacity: 0.9;
    transition: opacity 0.2s ease;
}

.signup-link a:hover {
    opacity: 1;
    text-decoration: underline;
}


/* ==========================================================================
   BUTTONS & INTERACTIVE ELEMENTS
   ========================================================================== */

.login-btn {
    background-color: #fff;
    color: #333;
    border: none;
    border-radius: 8px;
    padding: 14px 24px;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    width: 100%;
}

.login-btn:hover {
    background-color: #e0e0e0;
    opacity: 0.9;
}

.login-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.google-login-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background-color: #fff;
    color: #333;
    border: none;
    border-radius: 8px;
    padding: 14px 24px;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    min-width: 240px;
    line-height: 1;
}

.google-login-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.button-text {
    margin-top: 2px;
}

.google-icon {
    flex-shrink: 0;
}


/* ==========================================================================
   HTMX & DYNAMIC CONTENT STYLES
   ========================================================================== */

/* HTMX Loading Indicators */
.htmx-indicator {
    display: none;
    color: #888;
    font-size: 14px;
    margin-top: 12px;
    text-align: center;
    font-family: Arial, Helvetica, sans-serif;
}

.htmx-request .htmx-indicator,
.htmx-request.htmx-indicator {
    display: block;
}

/* Auth Status Messages */
.auth-success {
    background-color: #2d5a2d;
    color: #90ee90;
    border: 1px solid #4a8a4a;
    border-radius: 8px;
    padding: 16px;
    margin-top: 16px;
    text-align: center;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
}

.auth-success p {
    margin: 0 0 8px 0;
}

.auth-success p:last-child {
    margin-bottom: 0;
}


/* ==========================================================================
   MAINTENANCE MESSAGE STYLES
   ========================================================================== */

.maintenance-message {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    max-width: 90vw;
    width: auto;
    animation: slideUp 0.3s ease-out;
    text-align: center;
    box-shadow: 0 4px 12px rgba(45, 74, 90, 0.3);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* ==========================================================================
   FOOTER STYLES
   ========================================================================== */

.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
    text-align: center;
    z-index: 5;
    min-height: 60px;
}

.copyright {
    font-size: 13px;
    opacity: 0.8;
    text-align: center;
    width: 100%;
    margin: 0;
    padding: 0;
}


/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */

@media (max-width: 768px) {
    body {
        padding-bottom: 70px;
    }
    
    .footer {
        padding: 15px 10px;
        min-height: 50px;
    }
    
    .copyright {
        font-size: 12px;
    }
    
    .maintenance-message {
        bottom: 70px;
        max-width: 95vw;
        width: 60vw;
    }
}

@media (max-width: 480px) {
    body {
        padding-bottom: 65px;
    }
    
    .footer {
        padding: 12px 8px;
        min-height: 45px;
    }
    
    .copyright {
        font-size: 11px;
        line-height: 1.2;
    }
    
    .maintenance-message {
        bottom: 60px;
        max-width: 96vw;
        width: 65vw;
    }
}