/* ========================================
   Login Page Styles (Compact Glass)
   ======================================== */

.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.7)),
        url('../images/mural.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    font-family: 'Inter', sans-serif;
    padding: 1rem;
    /* Prevent edge touching on mobile */
}

.login-container {
    width: 100%;
    max-width: 400px;
    /* Tighter width for better look */
    position: relative;
    z-index: 10;
}

/* Glassmorphism Card - Compact */
.login-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    padding: 2.5rem 2rem;
    text-align: center;
    width: 100%;
    /* No min-height - let content dictate height */
}

/* Header Section */
.login-card-header {
    margin-bottom: 2rem;
}

/* Logo Styling */
.header-logo {
    margin-bottom: 1rem;
}

.header-logo img {
    width: 90px;
    height: 90px;
    object-fit: contain;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.2));
}

.login-card-header h1 {
    font-size: 1.5rem;
    /* Slightly smaller for balance */
    font-weight: 800;
    margin: 0.5rem 0;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.login-card-header .subtitle {
    font-size: 0.8rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    line-height: 1.4;
}

/* Form Styling */
.form-group {
    margin-bottom: 1.25rem;
    text-align: left;
}

.form-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 0.4rem;
    letter-spacing: 0.5px;
}

.input-wrapper {
    position: relative;
    background: rgba(0, 0, 0, 0.2);
    /* Slight dark bg for input contrast */
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.input-wrapper:focus-within {
    background: rgba(0, 0, 0, 0.3);
    border-color: #ff9f43;
    box-shadow: 0 0 0 2px rgba(255, 159, 67, 0.2);
}

.input-wrapper input {
    width: 100%;
    border: none;
    background: transparent;
    padding: 0.75rem 0.75rem 0.75rem 2.5rem;
    font-size: 0.95rem;
    color: white;
}

.input-wrapper input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.input-wrapper input:focus {
    outline: none;
}

/* Icons */
.input-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: rgba(255, 255, 255, 0.6);
}

.input-wrapper:focus-within .input-icon {
    color: #ff9f43;
}

/* Password Toggle */
.toggle-password {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
}

.toggle-password:hover {
    color: white;
}

/* Button */
.btn-login {
    width: 100%;
    background: linear-gradient(135deg, #ff9966, #ff5e62);
    border: none;
    border-radius: 8px;
    padding: 0.9rem;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: white;
    margin-top: 1rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(255, 94, 98, 0.3);
    transition: all 0.2s ease;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 94, 98, 0.5);
    filter: brightness(1.1);
}

.btn-login:active {
    transform: translateY(0);
}

/* Loading Spinner */
.btn-loader {
    display: flex;
    justify-content: center;
}

.spinner {
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.login-footer {
    margin-top: 2rem;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
}

/* Mobile Responsiveness */
@media (max-width: 480px) {
    .login-container {
        max-width: 100%;
    }

    .login-card {
        padding: 2rem 1.5rem;
    }

    .header-logo img {
        width: 70px;
        height: 70px;
    }

    .login-card-header h1 {
        font-size: 1.25rem;
    }
}

/* Alerts */
.alert {
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.5);
    color: #ffcccc;
    padding: 0.75rem;
    border-radius: 8px;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    backdrop-filter: blur(4px);
}

.alert svg {
    width: 20px;
    height: 20px;
}