/* Fullscreen background image */
body {
    margin: 0;
    padding: 0;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;

    background: url('/static/images/vintageoffice.jpeg') no-repeat center center fixed;
    background-size: cover;

    font-family: system-ui, sans-serif;
}

/* Frosted, semi-transparent, grayscale login panel */
.login-container {
    width: 360px;
    padding: 34px 38px;

    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px) saturate(0%);

    border-radius: 14px;

    border: 1px solid rgba(255, 255, 255, 0.35);
    box-shadow:
        0 8px 24px rgba(0,0,0,0.35),
        inset 0 0 0 1px rgba(255,255,255,0.15);

    transition: all 0.4s ease;
}

/* Title */
.login-container h2 {
    margin-bottom: 26px;
    font-size: 24px;
    font-weight: 700;
    text-align: center;
    color: #ffffff;
    letter-spacing: 0.6px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.4);
}

/* Labels */
label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 600;
    color: #e5e7eb;
}

/* Inputs */
input {
    width: 100%;
    padding: 11px 12px;

    min-height: 44px; /* FIX: ensures consistent height */
    line-height: 1.2;

    border-radius: 6px;
    border: 1px solid rgba(255,255,255,0.4);

    background: rgba(255,255,255,0.2);
    color: #ffffff;

    font-size: 15px;

    margin-bottom: 18px;

    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input::placeholder {
    color: rgba(255,255,255,0.55);
}

input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59,130,246,0.35);
}

/* Password wrapper */
.password-wrapper {
    position: relative;
    width: 100%;
}

.password-wrapper input {
    padding-right: 48px; /* FIX: ensures text never overlaps icon */
}

/* Eye icon container */
.toggle-password {
    position: absolute;
    right: 10px;
    top: 0;

    width: 44px;   /* FIX: matches input height */
    height: 44px;  /* FIX: matches input height */

    display: flex;             /* centers SVG */
    align-items: center;
    justify-content: center;

    cursor: pointer;
    opacity: 0.75;
    user-select: none;

    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0,0,0,0.4);
}

.toggle-password:hover {
    opacity: 1;
}

/* Ensure SVG aligns perfectly */
.toggle-password svg {
    width: 20px;
    height: 20px;
    display: block;
    pointer-events: none;
}

/* Buttons */
button {
    width: 100%;
    padding: 12px;
    margin-top: 6px;

    background: #3b82f6;
    color: white;

    border: none;
    border-radius: 6px;

    font-size: 16px;
    font-weight: 600;

    cursor: pointer;
    transition: background 0.2s ease, transform 0.1s ease;
}

button:hover {
    background: #2563eb;
}

button:active {
    transform: scale(0.98);
}

/* Optional footer text */
.login-footer {
    margin-top: 16px;
    text-align: center;
    font-size: 12px;
    color: #e5e7eb;
}

/* Force consistent input styling */
.login-container input[type="text"],
.login-container input[type="password"] {
    background: rgba(255,255,255,0.2) !important;
    border: 1px solid rgba(255,255,255,0.4) !important;
    color: #ffffff !important;
}

/* Logo above the login title */
.login-logo {
    display: flex;
    justify-content: center;
    margin-bottom: 18px;
}

.login-logo img {
    width: 280px;
    height: auto;
    opacity: 0.95;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.35));
}

/* Slide-up animation */
.login-container.slide-up {
    transform: translateY(-20px);
    opacity: 0;
    transition: all 3.5s ease;
}

.login-error {
    color: #ff4d4d;
    text-align: center;
    margin-bottom: 14px;
    font-size: 14px;
    font-weight: 600;
}
