@import url('common.css');

/* Make login page layout fixed with header/footer always visible, allow scroll only if needed */
.login-page html, .login-page body {
    height: 100vh;
    min-height: 100vh;
    overflow: auto;
}

.login-page main.login-main {
    min-height: calc(100vh - 120px); /* adjust for header/footer height */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.login-page .fullscreen-container {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 0;
    background: none;
    padding: 0;
}

.login-page .container {
    max-width: 400px;
    width: 100%;
    margin: 0 auto;
    box-shadow: 0 4px 16px rgba(0,0,0,0.25);
    padding: 32px 28px 28px 28px;
    background-color: #333;
    border-radius: 18px;
}

.login-page .app-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
    margin-bottom: 1.5em !important;
    background: rgba(255,255,255,0.07);
    border-radius: 18px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    padding: 20px 0 24px 0;
    border: 2px solid #292929;
    border-bottom: 2px solid #292929;
    position: relative;
    box-sizing: border-box;
    overflow: visible;
}

body.light-mode .login-page .app-header {
    border: 2px solid #bbb;
    background: #fff;
    border-radius: 18px;
    box-sizing: border-box;
    overflow: visible;
}

.login-page .app-title h1,
.login-page .app-title .app-subtitle {
    text-align: center;
    width: 100%;
}

.login-page .app-title h1 {
    font-size: 1.6rem;
    font-weight: 600;
    color: #f5f5f5;
    margin-bottom: 0.15em;
    letter-spacing: 0.01em;
    text-shadow: none;
}

.login-page .app-title .app-subtitle {
    font-size: 1rem;
    font-weight: 400;
    color: #b0b0b0;
    margin-bottom: 0;
    letter-spacing: 0.01em;
}

/* Responsive for mobile */
@media (max-width: 480px) {
    .login-page .container {
        max-width: 95vw;
        padding: 18px 6vw 18px 6vw;
    }
}

/* Ensure footer is flush with the bottom on login page */
.login-page footer {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    margin-bottom: 0;
    z-index: 100;
}

/* Prevent overlap if content overflows (mobile, small screens) */
@media (max-height: 600px), (max-width: 480px) {
    .login-page footer {
        position: static;
    }
} 