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

body {
    font-family: "Inter", sans-serif;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8fafc;
    /* Memberikan latar belakang gambar dapur komersial modern abstrak putih/terang tersaturasi */
    background-image: url("/img/mbg.webp");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #0f172a;
    padding: 20px;
    position: relative;
}

body::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    z-index: 1;
}

.login-container {
    width: 100%;
    max-width: 420px;
    z-index: 10;
}

.login-card {
    background: #ffffff;
    border: 1px solid #e2e8f5;
    border-radius: 20px;
    padding: 48px 40px;
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.4);
}

.login-brand {
    text-align: center;
    margin-bottom: 36px;
}

.login-brand-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
}

.login-brand h2 {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: #0f172a;
    margin-bottom: 6px;
}

.login-brand p {
    color: #64748b;
    font-size: 14px;
    line-height: 1.5;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 12.5px;
    font-weight: 700;
    color: #475569;
    margin-bottom: 8px;
}

.form-group .input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.form-group .input-wrapper > i:not(.toggle-password) {
    position: absolute;
    left: 14px;
    color: #94a3b8;
    font-size: 16px;
    transition: color 0.2s ease;
    z-index: 2;
}

.form-group input {
    width: 100%;
    height: 48px;
    padding: 10px 14px 10px 42px;
    background: #f8fbff;
    border: 1px solid #dbe3ee;
    border-radius: 12px;
    color: #0f172a;
    font-size: 14.5px;
    font-weight: 500;
    font-family: "Inter", sans-serif;
    transition: all 0.2s ease;
}

.form-group input[type="password"] {
    padding-right: 42px;
}
.form-group input[type="text"]#password {
    padding-right: 42px;
}

.form-group input:focus {
    outline: none;
    border-color: #1a56db;
    box-shadow: 0 0 0 3px rgba(26, 86, 219, 0.1);
    background: #ffffff;
}

.form-group input:focus ~ i:not(.toggle-password),
.form-group input:focus + i:not(.toggle-password) {
    color: #1a56db;
}

.form-group input::placeholder {
    color: #cbd5e1;
    font-weight: 400;
}

/* Visibility Toggle */
.toggle-password {
    position: absolute;
    right: 14px;
    color: #94a3b8;
    cursor: pointer;
    font-size: 18px;
    transition: color 0.2s ease;
    z-index: 2;
    background: none;
    border: none;
    padding: 0;
    outline: none;
}

.toggle-password:hover {
    color: #1a56db;
}

.form-check {
    margin-bottom: 24px;
    display: flex;
    align-items: center;
}

.form-check label {
    color: #64748b;
    font-size: 13.5px;
    font-weight: 500;
    cursor: pointer;
    margin-top: 2px;
}

.form-check-input {
    width: 16px;
    height: 16px;
    margin-right: 8px;
    border: 1px solid #cbd5e1;
    cursor: pointer;
}

.form-check-input:checked {
    background-color: #1a56db;
    border-color: #1a56db;
}

.btn-login {
    width: 100%;
    height: 48px;
    background: #1a56db;
    border: none;
    border-radius: 12px;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    font-family: "Inter", sans-serif;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-login:hover {
    background: #1e40af;
    transform: translateY(-1px);
    box-shadow: 0 8px 16px rgba(26, 86, 219, 0.15);
}

.btn-login:active {
    transform: translateY(0);
}

.error-message {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 12px;
    padding: 12px 16px;
    margin-bottom: 20px;
    color: #dc2626;
    font-size: 13px;
    font-weight: 500;
    display: flex;
    align-items: center;
}

.login-footer {
    text-align: center;
    margin-top: 24px;
    color: #94a3b8;
    font-size: 12.5px;
}
