* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #0d6efd, #00b894);
    padding: 20px 10px;
}

.container {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.login-box {
    width: 390px;
    max-width: 100%;
    background: #fff;
    padding: 35px 30px;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
}

.logo {
    text-align: center;
    margin-bottom: 24px;
}

.logo img {
    width: 80px;
    height: auto;
    margin-bottom: 10px;
}

.logo h2 {
    color: #0d6efd;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 4px;
}

.logo p {
    color: #6c757d;
    font-size: 14px;
    margin: 0;
}

.input-box {
    position: relative;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
}

.input-box input {
    width: 100%;
    height: 48px;
    padding: 0 44px;
    border: 1px solid #ced4da;
    border-radius: 8px;
    outline: none;
    font-size: 15px;
    color: #333;
    background-color: #fff;
    transition: border-color .2s, box-shadow .2s;
}

.input-box input:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.15);
}

/* Hide default browser password reveal icons */
input::-ms-reveal,
input::-ms-clear {
    display: none !important;
}

.input-box > i.input-icon,
.input-box > i:first-child {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
    font-size: 16px;
    pointer-events: none;
    z-index: 2;
}

.input-box .toggle-password {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #6c757d;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: color .2s, background-color .2s;
    z-index: 5;
    user-select: none;
    background: transparent;
    border: none;
    padding: 0;
}

.input-box .toggle-password:hover {
    color: #0d6efd;
    background-color: rgba(13, 110, 253, 0.08);
}

.input-box .toggle-password i {
    position: static !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    transform: none !important;
    font-size: 16px !important;
    color: inherit !important;
    display: inline-block !important;
    line-height: 1 !important;
}

button[type="submit"] {
    width: 100%;
    padding: 13px;
    background: #0d6efd;
    border: none;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.5px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.1s ease;
}

button[type="submit"]:hover {
    background: #0056d2;
}

button[type="submit"]:active {
    transform: scale(0.99);
}

.remember {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    font-size: 14px;
}

.remember a {
    text-decoration: none;
    color: #0d6efd;
    transition: color 0.2s;
}

.remember a:hover {
    color: #0056d2;
    text-decoration: underline;
}

@media (max-width: 500px) {
    .login-box {
        width: 100%;
        padding: 25px 20px;
    }
}
