/* ==============================================
   LOGIN PUSKESMAS SRAGI 1 — Premium Design
   ============================================== */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html, body {
    height: 100%;
    margin: 0;
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f0f4f3;
    -webkit-font-smoothing: antialiased;
}

.login-page {
    width: 100%;
    min-height: 100vh;
}

/* ==============================================
   LEFT SIDE
   ============================================== */

.left-side {
    position: relative;
    height: 100vh;
    overflow: hidden;
}

/* Background Image */
.left-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
}

/* Dark Gradient Overlay */
.left-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        180deg,
        rgba(0, 80, 40, 0.78) 0%,
        rgba(0, 60, 30, 0.60) 40%,
        rgba(0, 50, 25, 0.72) 70%,
        rgba(0, 40, 20, 0.92) 100%
    );
    z-index: 1;
}

/* --- Top Branding Bar --- */
.left-top-bar {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 24px 32px;
}

.top-logo {
    width: 44px;
    height: 44px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.top-text {
    display: flex;
    flex-direction: column;
}

.top-title {
    color: #fff;
    font-weight: 700;
    font-size: 17px;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 3px rgba(0,0,0,0.4);
}

.top-subtitle {
    color: rgba(255,255,255,0.8);
    font-size: 13px;
    font-style: italic;
}

/* --- Center Content --- */
.left-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    text-align: center;
}

.center-logo {
    width: 110px;
    height: 110px;
    margin-bottom: 24px;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.4));
    animation: floatLogo 3s ease-in-out infinite;
}

@keyframes floatLogo {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-8px); }
}

.center-title {
    color: #fff;
    font-size: 42px;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: 1.5px;
    text-shadow: 0 3px 10px rgba(0,0,0,0.5);
    margin: 0;
}

/* --- Clock --- */
.left-clock {
    position: absolute;
    top: 24px;
    right: 32px;
    z-index: 2;
    text-align: right;
}

#clock {
    font-size: 36px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 3px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

#date {
    font-size: 14px;
    color: rgba(255,255,255,0.85);
    margin-top: 2px;
}

/* --- Bottom Feature Badges --- */
.left-bottom-badges {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 2;
    display: flex;
    justify-content: center;
    gap: 40px;
    padding: 24px 32px;
    background: linear-gradient(0deg, rgba(0,0,0,0.4) 0%, transparent 100%);
}

.badge-item {
    display: flex;
    align-items: center;
    gap: 10px;
    transition: transform 0.3s ease;
}

.badge-item:hover {
    transform: translateY(-3px);
}

.badge-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #5bea8f;
    font-size: 16px;
    border: 1px solid rgba(255,255,255,0.2);
    flex-shrink: 0;
}

.badge-text {
    display: flex;
    flex-direction: column;
}

.badge-text strong {
    color: #fff;
    font-size: 13px;
    font-weight: 600;
}

.badge-text span {
    color: rgba(255,255,255,0.7);
    font-size: 11px;
    line-height: 1.3;
}

/* ==============================================
   RIGHT SIDE — Login Form
   ============================================== */

.login-box {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(160deg, #f5f9f7 0%, #eef3f0 100%);
    padding: 24px;
}

.login-card {
    width: 100%;
    max-width: 420px;
    background: #fff;
    padding: 36px 32px 28px;
    border-radius: 20px;
    box-shadow:
        0 4px 6px rgba(0, 80, 40, 0.04),
        0 12px 32px rgba(0, 80, 40, 0.08),
        0 24px 60px rgba(0, 0, 0, 0.06);
    animation: slideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* --- Logo Wrapper --- */
.login-logo-wrapper {
    width: 68px;
    height: 68px;
    margin: 0 auto 14px;
    background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(25, 135, 84, 0.15);
    animation: pulseGlow 2.5s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 4px 14px rgba(25, 135, 84, 0.15); }
    50%      { box-shadow: 0 4px 24px rgba(25, 135, 84, 0.3); }
}

.login-logo {
    width: 42px;
    height: 42px;
}

/* --- Title --- */
.login-title {
    font-size: 18px;
    font-weight: 800;
    color: #1a3c2a;
    letter-spacing: 1px;
    margin: 0 0 2px;
}

.login-subtitle {
    font-size: 17px;
    font-weight: 700;
    color: #198754;
    letter-spacing: 0.5px;
    margin: 0 0 10px;
}

/* --- Title Divider --- */
.title-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 10px;
}

.divider-line {
    display: block;
    width: 50px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #198754, transparent);
    border-radius: 2px;
}

.divider-icon {
    color: #198754;
    font-size: 15px;
    opacity: 0.7;
}

.login-desc {
    color: #6b7c72;
    font-size: 13.5px;
    margin: 0;
}

/* ==============================================
   FORM ELEMENTS
   ============================================== */

.form-label {
    font-weight: 600;
    font-size: 13px;
    color: #2d4a3a;
    margin-bottom: 6px;
}

.input-group {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
    transition: box-shadow 0.3s ease;
}

.input-group:focus-within {
    box-shadow: 0 0 0 3px rgba(25, 135, 84, 0.15);
}

.input-group-text {
    background: linear-gradient(135deg, #198754, #157347);
    color: #fff;
    border: none;
    width: 44px;
    justify-content: center;
    font-size: 14px;
}

.form-control {
    height: 46px;
    border: 1px solid #dce5df;
    font-size: 13.5px;
    padding-left: 14px;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    box-shadow: none;
    border-color: #198754;
    outline: none;
}

.form-control::placeholder {
    color: #a0b0a5;
    font-size: 13px;
}

/* Toggle Password Button */
.btn-toggle-pw {
    border: 1px solid #dce5df;
    border-left: none;
    background: #fff;
    color: #6b7c72;
    padding: 0 14px;
    transition: color 0.2s ease;
}

.btn-toggle-pw:hover {
    color: #198754;
    background: #f0faf5;
}

/* --- Checkbox --- */
.form-check-input:checked {
    background-color: #198754;
    border-color: #198754;
}

.form-check-label {
    font-size: 13px;
    color: #4a5e52;
}

/* --- Forgot Link --- */
.forgot-link {
    color: #198754;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s ease;
}

.forgot-link:hover {
    color: #146c43;
    text-decoration: underline;
}

/* ==============================================
   LOGIN BUTTON
   ============================================== */

.btn-login {
    height: 50px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.8px;
    color: #fff;
    background: linear-gradient(135deg, #198754 0%, #20a865 50%, #198754 100%);
    background-size: 200% 200%;
    border: none;
    box-shadow: 0 4px 14px rgba(25, 135, 84, 0.35);
    transition: all 0.3s ease;
}

.btn-login:hover {
    background-position: 100% 0;
    box-shadow: 0 6px 20px rgba(25, 135, 84, 0.45);
    transform: translateY(-1px);
    color: #fff;
}

.btn-login:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(25, 135, 84, 0.3);
}

/* ==============================================
   NOTICE & COPYRIGHT
   ============================================== */

.login-notice {
    margin-top: 20px;
    padding: 10px 14px;
    background: #f0faf5;
    border: 1px solid #c8e6d5;
    border-radius: 10px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 12px;
    color: #3d6b4f;
    line-height: 1.5;
}

.login-notice i {
    color: #198754;
    font-size: 14px;
    margin-top: 1px;
    flex-shrink: 0;
}

.login-copyright {
    margin-top: 16px;
    text-align: center;
    color: #94a39b;
    font-size: 12px;
}

.login-copyright strong {
    color: #5a7566;
}

/* ==============================================
   RESPONSIVE
   ============================================== */

@media (max-width: 991px) {
    .left-side {
        display: none;
    }

    .login-box {
        padding: 20px;
        background: linear-gradient(160deg, #e8f5e9 0%, #f5f9f7 50%, #eef3f0 100%);
    }

    .login-card {
        max-width: 420px;
        padding: 32px 24px 28px;
    }
}

@media (max-width: 576px) {
    .login-card {
        padding: 28px 20px 24px;
        border-radius: 16px;
    }

    .login-title { font-size: 16px; }
    .login-subtitle { font-size: 14px; }
    .btn-login { height: 46px; font-size: 14px; }
}

/* ==============================================
   ALERT OVERRIDES (Myth:Auth)
   ============================================== */

.alert {
    border-radius: 10px;
    font-size: 13px;
    padding: 10px 14px;
}

.alert-danger {
    background: #fef2f2;
    border-color: #fecaca;
    color: #991b1b;
}

.alert-success {
    background: #f0fdf4;
    border-color: #bbf7d0;
    color: #166534;
}
