/* ==========================================================================
   VWAR Login Page Stylesheet
   ========================================================================== */

* {
    box-sizing: border-box;
}

body, html {
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #0f172a url("./blbg.jpg") no-repeat center center fixed;
    background-size: cover;
    color: #ffffff;
    position: relative;
}

/* Background Dark Overlay */
body::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 0;
}

.login-container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 440px;
    padding: 20px;
}

/* Glassmorphism Card */
.wrapper {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    padding: 40px 32px;
    text-align: center;
}

/* Logo */
.logo {
    display: block;
    margin: 0 auto 16px;
    background: #ffffff;
    padding: 8px 16px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.brand-heading {
    font-size: 1.35rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 6px 0;
    letter-spacing: -0.01em;
}

.brand-subheading {
    font-size: 0.85rem;
    color: #cbd5e1;
    margin: 0 0 24px 0;
}

/* Input Fields & Floating Labels */
.input-field {
    position: relative;
    margin-bottom: 20px;
    text-align: left;
}

.input-field input {
    width: 100%;
    padding: 14px 16px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(15, 23, 42, 0.6);
    color: #ffffff;
    font-size: 1rem;
    outline: none;
    transition: all 0.2s ease;
}

.input-field input:focus {
    border-color: #38bdf8;
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.25);
    background: rgba(15, 23, 42, 0.8);
}

.input-field label {
    position: absolute;
    top: 50%;
    left: 16px;
    transform: translateY(-50%);
    font-size: 0.9rem;
    color: #94a3b8;
    pointer-events: none;
    transition: all 0.2s ease;
}

.input-field input:focus + label,
.input-field input:not(:placeholder-shown) + label,
.input-field input:valid + label {
    top: -10px;
    left: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #38bdf8;
    background: #0f172a;
    padding: 0 6px;
    border-radius: 4px;
    transform: translateY(0);
}

/* Submit Button */
.btn-login {
    background: #2563eb;
    border: none;
    color: #ffffff;
    font-weight: 600;
    font-size: 1rem;
    padding: 13px;
    border-radius: 8px;
    width: 100%;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
}

.btn-login:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.45);
}

.btn-login:active {
    transform: translateY(0);
}

/* Alerts */
.login-alert {
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 0.875rem;
    margin-bottom: 20px;
    text-align: left;
}

/* Footer Info */
.login-footer {
    position: absolute;
    bottom: 16px;
    left: 0;
    right: 0;
    text-align: center;
    font-size: 0.8rem;
    color: #94a3b8;
    z-index: 1;
}

.login-footer a {
    color: #38bdf8;
    text-decoration: none;
}

.login-footer a:hover {
    text-decoration: underline;
}

.login-footer p {
    margin: 4px 0;
}
