html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: "Segoe UI", sans-serif;
    background: #ece9f0;
    min-height: 100vh;
    min-width: 100vw;
    box-sizing: border-box;
}

body {
    /* Main background from your asset, adjust path if needed */
    background: url("../img/bg2.png") center/cover no-repeat fixed, #ece9f0;
    min-height: 100vh;
    min-width: 100vw;
}

/* Flex center wrapper for the whole page */
.liquid-bg {
    width: 100vw;
    height: 100vh;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
    background: rgba(0,0,0,0.06);
}

/* Title above login box */
.system-title {
    color: #181c32;
    font-size: 2.4rem;
    font-weight: 700;
    margin-bottom: 2px;
    letter-spacing: 1px;
    text-shadow: 0 2px 10px #fff;
    z-index: 2;
    text-align: center;
}

.subtitle {
    color: #222;
    font-size: 1.18rem;
    font-weight: 400;
    margin-bottom: 32px;
    letter-spacing: .5px;
    text-align: center;
}

/* Center login box using flex */
.center-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100vw;
    min-height: 50vh;
    flex: 1;
    z-index: 2;
}

/* The glass login container */
.login-glass-container,
.liquid-glass {
    max-width: 370px;
    width: 100%;
    margin: 0 auto;
    padding: 36px 32px 24px 32px;
    border-radius: 24px;
    background: rgba(255,255,255,0.20);
    box-shadow: 0 8px 32px 0 rgba(31,38,135,0.22);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1.5px solid rgba(255,255,255,0.32);
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 5;
    /* Dragable overlay bar at top (invisible) */
    /* .glass-drag-handle is handled by script */
}

.glass-drag-handle {
    width: 100%;
    height: 22px;
    position: absolute;
    top: 0; left: 0;
    cursor: grab;
    opacity: 0;
    z-index: 10;
}

/* The login form inside glass */
.liquid-form, .login-form {
    width: 100%;
    margin-top: 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Error message style */
.liquid-error {
    background: #e15c6b;
    color: #fff;
    padding: 9px 16px;
    border-radius: 8px;
    margin-bottom: 12px;
    font-size: 1rem;
    text-align: center;
    letter-spacing: .3px;
    width: 100%;
}

/* Input group: text and icon */
.liquid-input-group,
.input-group {
    width: 100%;
    position: relative;
    margin-bottom: 19px;
    display: flex;
    align-items: center;
}

.liquid-input-group input,
.input-group input {
    width: 100%;
    padding: 12px 42px 12px 14px;
    border-radius: 21px;
    border: none;
    background: rgba(255,255,255,0.82);
    color: #141626;
    font-size: 1.08rem;
    box-shadow: 0 4px 14px 0 rgba(23, 60, 140, 0.08);
    outline: none;
    font-family: inherit;
    transition: box-shadow 0.20s;
}

.liquid-input-group input:focus,
.input-group input:focus {
    box-shadow: 0 2px 12px 0 rgba(23,60,140,0.17);
    background: rgba(255,255,255,0.93);
}

/* The icon */
.liquid-input-group .liquid-icon,
.input-group i.icon {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #53587a;
    font-size: 1.25rem;
    pointer-events: none;
    opacity: 0.85;
    display: flex;
    align-items: center;
}

/* Headings in login glass */
.login-form h2 {
    color: #141626;
    font-weight: 700;
    font-size: 2rem;
    margin-bottom: 8px;
    margin-top: 8px;
    text-align: center;
    letter-spacing: .5px;
}

/* Button */
.liquid-btn, .login-form button {
    width: 100%;
    padding: 12px 0;
    border: none;
    background: linear-gradient(90deg, #6379c2 5%, #a777e3 80%);
    color: #fff;
    font-weight: 600;
    border-radius: 21px;
    box-shadow: 0 2px 10px 0 rgba(23, 60, 140, 0.14);
    font-size: 1.13rem;
    cursor: pointer;
    margin-top: 7px;
    letter-spacing: .5px;
    transition: background 0.22s;
    outline: none;
}

.liquid-btn:hover, .login-form button:hover {
    background: linear-gradient(90deg, #a777e3 5%, #6379c2 80%);
}

/* Forgot password link */
.liquid-footer,
.forgot-password {
    width: 100%;
    margin-top: 13px;
    text-align: right;
    font-size: 0.98rem;
}

.liquid-footer a,
.forgot-password a {
    color: #3f51b5;
    text-decoration: underline;
    font-weight: 400;
    transition: color 0.14s;
}

.liquid-footer a:hover,
.forgot-password a:hover {
    color: #222;
}

/* Mobile responsive */
@media (max-width: 580px) {
    .system-title { font-size: 1.25rem; }
    .subtitle { font-size: .99rem; }
    .login-glass-container, .liquid-glass {
        padding: 18px 3vw 16px 3vw;
        min-width: unset;
        width: 97vw;
        max-width: 99vw;
        margin: 0 1vw;
    }
}

@media (max-width: 430px) {
    .system-title { font-size: 0.92rem;}
    .subtitle { font-size: .88rem;}
}

.modal-content {
    width: 380px;
    max-width: 90vw;
    margin: 0 auto;
    border-radius: 18px;
    box-shadow: 0 4px 28px 0 rgba(31,38,135,0.12);
    padding: 32px 28px 18px 28px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Style the input fields inside the modal */
.modal-content input[type="text"],
.modal-content input[type="password"] {
    width: 100%;
    padding: 13px 15px;
    margin-bottom: 18px;
    font-size: 1.07rem;
    border-radius: 13px;
    border: 1px solid #ddd;
    box-sizing: border-box;
    background: #fff;
    outline: none;
}

/* Style for the modal title and button (optional) */
.modal-content h2,
.modal-content h3 {
    margin-top: 0;
    margin-bottom: 22px;
    color: #181c32;
    font-weight: 600;
    font-size: 1.15rem;
    text-align: left;
    width: 100%;
}
.modal-content button {
    width: 100%;
    padding: 12px 0;
    margin-top: 6px;
    border: none;
    border-radius: 13px;
    background: linear-gradient(90deg,#6379c2 5%,#a777e3 80%);
    color: #fff;
    font-weight: 600;
    font-size: 1.07rem;
    cursor: pointer;
    transition: background 0.23s;
}

/* Responsive: Smaller screens */
@media (max-width: 500px) {
    .modal-content {
        width: 96vw;
        padding: 18px 3vw;
    }
}

.logo-header {
    display: flex;
    justify-content: center;
    margin-top: 35px;
    margin-bottom: -5px;
}

.dimataling-logo {
    width: 96px;
    height: 96px;
    object-fit: contain;
    border-radius: 50%;
    background: rgba(255,255,255,0.82);
    box-shadow: 0 2px 10px rgba(0,0,0,0.12);
    border: 2.5px solid #e3e3e3;
}

.login-title-row {
    display: flex;
    align-items: center;
    justify-content: left;
    gap: 16px;
    margin-bottom: 12px;
}

.mswdo-logo {
    width: 52px;
    height: 52px;
    object-fit: contain;
    border-radius: 50%;
    background: rgba(255,255,255,0.92);
    border: 2px solid #e3e3e3;
    box-shadow: 0 2px 6px rgba(0,0,0,0.13);
}

.login-title-row h2 {
    color: #1a1737;
    margin: 0;
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 1px;
}
