body {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f4f6fb;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-container {
    background: #fff;
    padding: 40px 30px 30px 30px;
    border-radius: 16px;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 320px;
}
 
.logo {
    width: 280px;
    height: auto;
    margin-bottom: 18px;
    display: block;
}

h2 {
    margin: 0 0 24px 0;
    color: #2d3a4b;
    font-weight: 600;
    font-size: 1.6rem;
    text-align: center;
}

.login-form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.login-form input {
    padding: 12px;
    border: 1px solid #d1d9e6;
    border-radius: 8px;
    font-size: 1rem;
    outline: none;
    transition: border 0.2s;
}

.login-form input:focus {
    border-color: #4a90e2;
}

.login-form button {
    padding: 12px;
    background: #4a90e2;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.login-form button:hover {
    background: #357ab8;
}

.password-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.password-wrapper input[type="password"],
.password-wrapper input[type="text"] {
    flex: 1;
}

.password-wrapper button {
    position: absolute;
    right: 8px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    color: #4a90e2;
    padding: 0 4px;
    outline: none;
    height: 100%;
    display: flex;
    align-items: center;
}

.password-wrapper button:active {
    color: #357ab8;
}

@media (max-width: 430px) {
    body {
        padding: 8px;
    }
    .login-container {
        width: 98vw;
        min-width: unset;
        padding: 12px 2vw 10px 2vw;
        border-radius: 10px;
        box-shadow: 0 4px 16px 0 rgba(31, 38, 135, 0.10);
        flex-direction: column;
        align-items: center;
    }
    .logo {
        width: 80vw;
        max-width: 140px;
        margin-bottom: 10px;
    }
    .login-form {
        flex-direction: column;
        gap: 10px;
        width: 100%;
        padding: 0;
    }
    .login-form input {
        font-size: 0.95rem;
        padding: 10px;
    }
    h2 {
        font-size: 1.1rem;
        margin-bottom: 16px;
    }
}

/* ===================== RESPONSIVE DESIGN EXTRA ===================== */
@media (max-width: 350px) {
    .login-container {
        padding: 6px 1vw 6px 1vw;
        border-radius: 7px;
    }
    .logo {
        max-width: 90px;
    }
    .login-form input {
        font-size: 0.88rem;
        padding: 7px;
    }
    h2 {
        font-size: 0.95rem;
    }
}

