/* overflow on html = direct viewport clip, avoids the CSS body→viewport propagation
   quirk that shifts fixed-element containing blocks and breaks SweetAlert2 centering */
html {
    overflow: hidden;
}

body {
    margin: 0;
    font-family: 'Segoe UI', sans-serif;
}

/* Full-screen background + dark overlay in one fixed layer.
   Keeping it here (not on body) ensures it always covers the viewport
   regardless of body dimensions, and avoids background-propagation rules. */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        linear-gradient(rgba(10, 25, 55, 0.52), rgba(10, 25, 55, 0.52)),
        url('../../images/pexels-polina-zimmerman-3778622.jpg') center / cover no-repeat;
    z-index: 0;
}

/* GLASS CONTAINER */
.login-panel {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 820px;
    min-height: 500px;
    display: flex;
    z-index: 10;
    box-shadow: 0 25px 45px rgba(0,0,0,0.4);
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.12);
    backdrop-filter: blur(18px);
    background: rgba(255,255,255,0.05);
    overflow: hidden;
}

/* LEFT INFO PANEL */
.info-box {
    flex: 1;
    padding: 50px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: white;
    background: rgba(13, 34, 71, 0.45);
    position: relative;
    overflow: hidden;
}

.info-box .logo {
    width: 200px;
    margin-bottom: 30px;
}

.info-box h2 {
    font-size: 2.2rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.info-box p {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.75);
    line-height: 1.6;
}

/* DECORATIVE LINES */
.deco-line {
    position: absolute;
    height: 200%;
    width: 60px;
    background: rgba(255,255,255,0.04);
    transform: rotate(35deg);
    top: -50%;
}
.deco-line:nth-child(1) { left: 10%; }
.deco-line:nth-child(2) { left: 30%; width: 20px; }

/* RIGHT LOGIN PANEL */
.login-box {
    flex: 1;
    padding: 50px 45px;
    background: rgba(255,255,255,0.96);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.login-box h3 {
    color: #0d2247;
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 35px;
}

.login-box .form-control {
    border: 1.5px solid #ddd;
    border-radius: 12px;
    padding: 10px 16px;
    font-size: 1rem;
    background: #f7f9fc;
    box-shadow: none;
    transition: border-color 0.3s, background 0.3s;
}

.login-box .form-control:focus {
    border-color: #0d2247;
    background: #fff;
    box-shadow: none;
}

/* Eye icon styling */
.input-group {
    position: relative;
}
.input-group .input-group-text {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    z-index: 5;
}
.input-group input {
    padding-right: 44px;
}
.input-group .fa-eye,
.input-group .fa-eye-slash {
    font-size: 0.85rem;
    color: #888;
}

/* BUTTON */
.btn-prism {
    width: 100%;
    background: #0d2247;
    color: white;
    padding: 11px;
    border-radius: 30px;
    border: none;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    margin-top: 10px;
    transition: background 0.25s, color 0.25s;
}
.btn-prism:hover {
    background: #f0a500;
    color: #0d2247;
}

/* WARNINGS */
.login-warning {
    font-size: 0.78rem;
    color: brown;
    margin-bottom: 8px;
}

/* SweetAlert2 v8 ships with top:30px and padding-left:30% on .swal2-container,
   which pushes the popup right and down. Override to a centered flex layout. */
.swal2-container {
    top: 0 !important;
    padding: .625em !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Suppress the spurious padding-right SweetAlert2 adds to body for a scrollbar
   that never appears (html overflow is hidden). */
body.swal2-shown {
    padding-right: 0 !important;
}

@media (max-width: 768px) {
    .login-panel {
        width: 92%;
        flex-direction: column;
    }
    .info-box {
        display: none;
    }
    .login-box {
        border-radius: 20px;
        padding: 40px 30px;
    }
}
