/* =============================================
   LOGIN PAGE — Stok Website Farmasi
   Simpan di: assets1/css/login-custom.css
   ============================================= */

* { box-sizing: border-box; }

body {
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
    background: linear-gradient(135deg, #e8f5f0 0%, #dceefb 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 1.5rem;
}

/* === CARD === */
.login-card {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.10);
    padding: 2.5rem 2rem 2rem;
    width: 100%;
    max-width: 400px;
}

/* === LOGO & HEADER === */
.login-logo-wrap {
    text-align: center;
    margin-bottom: 1.5rem;
}

.login-logo-circle {
    width: 82px;
    height: 82px;
    border-radius: 50%;
    background: #e8f5f0;
    border: 2.5px solid #1D9E75;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.9rem;
}

.login-logo-circle img {
    width: 44px;
    height: 44px;
    object-fit: contain;
}

.login-badge {
    display: inline-block;
    background: #e8f5f0;
    color: #0F6E56;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.5px;
    padding: 3px 12px;
    border-radius: 20px;
    margin-bottom: 0.4rem;
    text-transform: uppercase;
}

.login-title {
    font-size: 21px;
    font-weight: 700;
    color: #0F6E56;
    margin: 0 0 4px;
    letter-spacing: -0.3px;
}

.login-subtitle {
    font-size: 12px;
    color: #999;
    margin: 0;
    line-height: 1.5;
}

.login-divider {
    height: 1px;
    background: #f0f0f0;
    margin: 1.25rem 0;
}

/* === ERROR BOX === */
.login-error {
    background: #fff3f3;
    border: 1px solid #f5c1c1;
    border-radius: 10px;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #c0392b;
    margin-bottom: 1.25rem;
}

.login-error i { font-size: 15px; }

/* === FORM FIELDS === */
.login-field { margin-bottom: 1rem; }

.login-field label {
    font-size: 13px;
    font-weight: 600;
    color: #555;
    display: block;
    margin-bottom: 6px;
}

.login-input-wrap { position: relative; }

.login-input-wrap .input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 15px;
    color: #aaa;
    pointer-events: none;
}

.login-input-wrap input {
    width: 100%;
    height: 48px;
    border: 1.5px solid #e0e0e0;
    border-radius: 10px;
    padding: 0 44px 0 42px;
    font-size: 14px;
    color: #222;
    background: #fafafa;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.login-input-wrap input:focus {
    border-color: #1D9E75;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(29, 158, 117, 0.12);
}

.login-input-wrap input::placeholder { color: #bbb; }

.btn-toggle-pass {
    position: absolute;
    right: 13px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    color: #aaa;
    font-size: 16px;
    line-height: 1;
    transition: color 0.15s;
}

.btn-toggle-pass:hover { color: #1D9E75; }

/* === SUBMIT BUTTON === */
.btn-login {
    width: 100%;
    height: 50px;
    margin-top: 0.75rem;
    background: #1D9E75;
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    letter-spacing: 0.2px;
    box-shadow: 0 4px 16px rgba(29, 158, 117, 0.28);
    transition: background 0.2s, transform 0.12s, box-shadow 0.2s;
}

.btn-login:hover {
    background: #0F6E56;
    box-shadow: 0 6px 20px rgba(29, 158, 117, 0.38);
}

.btn-login:active { transform: scale(0.98); }

.btn-login i { font-size: 16px; }

/* === FOOTER === */
.login-footer {
    text-align: center;
    font-size: 11.5px;
    color: #ccc;
    margin-top: 1.5rem;
    line-height: 1.6;
}

/* === RESPONSIVE === */
@media (max-width: 480px) {
    body { padding: 1rem; }
    .login-card { padding: 2rem 1.25rem 1.5rem; }
    .login-title { font-size: 19px; }
}