/* ===== Reset ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Raleway', Arial, sans-serif !important;
    background: linear-gradient(135deg, #1e2f5e, #2856a6);
    color: #fff;
    min-height: 100vh;
    line-height: 1.5;
    overflow-x: hidden;
}

/* ===== Login Hero Layout ===== */
.login-hero {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 60px 20px;
    position: relative;
    overflow: hidden;
}

/* ===== Collage Background ===== */
.collage {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    grid-auto-rows: 80px;
    gap: 3px;
    z-index: 0;
    pointer-events: none;
}

.collage .img-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 11px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.07);
    backdrop-filter: blur(8px) saturate(150%);
    -webkit-backdrop-filter: blur(8px) saturate(150%);
}

.collage .img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s cubic-bezier(.33,1.03,.68,1.12);
    filter: brightness(0.97) blur(0.5px);
}

.collage .img-wrapper img:hover {
    transform: scale(1.05);
}

.signup-box {
    position: relative;
    z-index: 2;
    max-width: 420px;
    width: 100%;
    padding: 44px 34px 36px 34px;
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(16px) saturate(190%);
    -webkit-backdrop-filter: blur(16px) saturate(190%);
    border-radius: 22px;
    border: 1.5px solid rgba(255, 255, 255, 0.21);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.33);
    text-align: center;
    animation: fadeInUp 1s cubic-bezier(.33, 1.03, .68, 1.12);
}

.login-title {
    font-size: 2.05rem;
    font-weight: 800;
    margin-bottom: 8px;
    color: #fff;
    letter-spacing: -1px;
    text-shadow: 0 2px 12px rgba(30, 55, 120, 0.13);
}

.login-subtitle {
    font-size: 1.07rem;
    color: #f4f5f9;
    opacity: 0.82;
    margin-bottom: 20px;
    margin-top: 0;
    font-weight: 500;
}

/* Form fields already styled? If not, keep these: */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 16px;
}

.login-form input[type="email"],
.login-form input[type="password"] {
    width: 100%;
    padding: 13px 16px;
    border-radius: 12px;
    border: 1.2px solid rgba(255, 255, 255, 0.23);
    background: rgba(255, 255, 255, 0.10);
    color: #fff;
    font-size: 1rem;
    transition: 0.22s;
    font-family: 'Raleway', Arial, sans-serif;
}

.login-form input::placeholder {
    color: rgba(255, 255, 255, 0.67);
}

.login-form input:focus {
    outline: none;
    border-color: #fff;
    background: rgba(255, 255, 255, 0.19);
}

/* Remember Me / Forgot Row */
.login-form-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0;
    margin-top: 0;
}

.checkbox-container {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.97rem;
    color: rgba(255, 255, 255, 0.73);
}

.checkbox-container input[type="checkbox"] {
    accent-color: #3a6cf7;
    width: 1.08em;
    height: 1.08em;
    border-radius: 6px;
}

.forgot-link {
    font-size: 0.97rem;
    color: rgba(255, 255, 255, 0.69);
    text-decoration: none !important;
    font-weight: 500;
    margin-right: 0;
    transition: color 0.14s;
}

.forgot-link:hover,
.forgot-link:focus {
    color: #fff;
}

/* Pill Glass Button */
.glass-btn {
    display: inline-block;
    width: 100%;
    padding: 14px 0;
    font-size: 1.11rem;
    font-weight: 800;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.84);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.09);
    backdrop-filter: blur(13px) saturate(140%);
    -webkit-backdrop-filter: blur(13px) saturate(140%);
    box-shadow: 0 1px 16px 0 rgba(20, 25, 60, 0.14);
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    outline: none;
    transition:
        background 0.18s,
        color 0.18s,
        border-color 0.18s,
        box-shadow 0.18s;
    letter-spacing: 0.01em;
    margin-top: 10px;
    margin-bottom: 0;
}

.glass-btn:hover,
.glass-btn:focus {
    background: rgba(255, 255, 255, 0.19);
    color: #fff;
    border-color: #fff;
    box-shadow: 0 5px 25px 0 rgba(20, 25, 60, 0.17);
}

/* Nav links as before */
.nav-links {
    margin-top: 22px;
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.subtle-link {
    display: block;
    text-align: center;
    font-size: 0.92rem;
    color: rgba(255, 255, 255, 0.57);
    text-decoration: none !important;
    opacity: 0.78;
    font-weight: 400;
    transition: color 0.16s, opacity 0.16s;
    cursor: pointer;
    margin-top: 0;
}

.subtle-link:hover,
.subtle-link:focus {
    color: rgba(255, 255, 255, 0.97);
    opacity: 1;
    text-decoration: none !important;
}

/* Error Message */
.error-msg {
    background: rgba(255, 75, 75, 0.16);
    color: #ff6b6b;
    padding: 11px 15px;
    border-radius: 11px;
    font-weight: 600;
    margin-bottom: 18px;
    border: 1.3px solid rgba(255, 75, 75, 0.23);
    font-size: 1rem;
    letter-spacing: 0.01em;
}

@media (max-width: 768px) {
    .signup-box {
        max-width: 97vw;
        padding: 22px 4vw 18px 4vw;
        border-radius: 16px;
    }

    .login-title {
        font-size: 1.21rem;
    }

    .login-subtitle {
        font-size: 0.97rem;
    }

    .login-form input,
    .glass-btn {
        font-size: 0.96rem;
        padding: 10px 0;
    }
}

/* Fade In Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(28px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* ===== Responsive ===== */
@media (max-width: 768px) {
    .collage {
        grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
        grid-auto-rows: 60px;
    }
    .glass-container {
        max-width: 97vw;
        padding: 22px 5vw 18px 5vw;
    }
    .glass-container h1 {
        font-size: 1.33rem;
    }
    .login-form input[type="email"],
    .login-form input[type="password"] {
        font-size: 0.97rem;
    }
    .glass-btn, .login-form button {
        font-size: 0.98rem;
        padding: 11px 0;
    }
}

/* ===== Animation ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(28px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
