*, *::before, *::after {
    box-sizing: border-box;
}

body {
    background-color: #f4f6f8;
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* Container Utama Mobile 480px */
.login-container {
    background: #ffffff;
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    min-height: 100vh;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
}

/* Header Navbar */
.login-header {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #eeeeee;
    background: #ffffff;
    position: sticky;
    top: 0;
    z-index: 10;
}

.login-header .back-btn {
    font-size: 22px;
    color: #008a43;
    text-decoration: none;
    margin-right: 16px;
    line-height: 1;
}

.login-header h2 {
    font-size: 17px;
    font-weight: 600;
    color: #333333;
    margin: 0;
}

/* Content Area */
.login-content {
    padding: 28px 24px;
    flex: 1;
}

.login-welcome {
    margin-bottom: 30px;
}

.login-welcome h3 {
    font-size: 20px;
    font-weight: 700;
    color: #222222;
    margin: 0 0 6px 0;
}

.login-welcome p {
    font-size: 13px;
    color: #777777;
    margin: 0;
}

/* Form Input Group */
.input-group-field {
    width: 100%;
    display: flex;
    align-items: center;
    border-bottom: 1.5px solid #e0e0e0;
    padding: 10px 0;
    margin-bottom: 22px;
    position: relative;
    transition: border-color 0.2s;
}

.input-group-field:focus-within {
    border-bottom-color: #008a43;
}

.field-icon {
    font-size: 18px;
    color: #888888;
    margin-right: 12px;
    display: flex;
    align-items: center;
}

.input-group-field input {
    width: 100%;
    flex: 1;
    border: none;
    outline: none;
    font-size: 14px;
    color: #333333;
    background: transparent;
    padding: 0;
}

/* Hilangkan warna autofill bawaan browser */
.input-group-field input:-webkit-autofill,
.input-group-field input:-webkit-autofill:hover, 
.input-group-field input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0px 1000px #ffffff inset !important;
    transition: background-color 5000s ease-in-out 0s;
}

/* Tombol Mata PW */
.btn-toggle-pw {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    color: #888888;
    padding: 4px;
    line-height: 1;
}

/* Lupa Password Link */
.forgot-pass-wrapper {
    text-align: right;
    margin-top: -10px;
    margin-bottom: 24px;
}

.forgot-pass-link {
    font-size: 12.5px;
    color: #008a43;
    text-decoration: none;
    font-weight: 600;
}

/* Tombol Masuk */
.btn-login {
    width: 100%;
    background-color: #008a43;
    color: #ffffff;
    border: none;
    padding: 14px 0;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.2s;
    box-shadow: 0 3px 8px rgba(0, 138, 67, 0.25);
}

.btn-login:active {
    background-color: #006e35;
}

/* Footer Register */
.login-footer {
    width: 100%;
    margin-top: 36px;
    text-align: center;
}

.login-footer p {
    font-size: 13.5px;
    color: #666666;
    margin: 0;
}

.login-footer a {
    color: #008a43;
    text-decoration: none;
    font-weight: 700;
}

/* Alert Notification */
.alert {
    width: 100%;
    padding: 12px 14px;
    border-radius: 6px;
    font-size: 13px;
    margin-bottom: 20px;
}

.alert-danger {
    background-color: #fce8e6;
    color: #c5221f;
    border: 1px solid #fad2cf;
}