/* ============================================================
   login.css — Sistem Perencanaan
   Font    : Open Sans (Google Fonts)
   Updated : 2026
   ============================================================ */

* {
    font-family: 'Open Sans', sans-serif;
}

body {
    min-height: 100vh;
    background: #f0f2f5;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

/* Animated background blobs */
body::before,
body::after {
    content: '';
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.08;
    animation: floatBlob 8s ease-in-out infinite;
    pointer-events: none;
}

body::before {
    width: 400px;
    height: 400px;
    background: #e94560;
    top: -100px;
    left: -100px;
}

body::after {
    width: 350px;
    height: 350px;
    background: #0f3460;
    bottom: -80px;
    right: -80px;
    animation-delay: 4s;
}

@keyframes floatBlob {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50%       { transform: translate(30px, 20px) scale(1.1); }
}

/* ── Login Card ── */
.login-card {
    background: #ffffff;
    border: 1px solid #e8eaed;
    border-radius: 20px;
    width: 100%;
    max-width: 440px;
    padding: 40px 36px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.10);
    animation: slideUp 0.6s ease;
    position: relative;
    z-index: 10;
}

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

/* ── Logo / Icon ── */
.login-icon-wrap {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, #e94560, #c23152);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 10px 30px rgba(233, 69, 96, 0.4);
}

.login-icon-wrap i {
    font-size: 32px;
    color: #fff;
}

.login-title {
    color: #1a1a2e;
    font-size: 1.55rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 4px;
    letter-spacing: -0.3px;
}

.login-subtitle {
    color: #6c757d;
    font-size: 0.85rem;
    text-align: center;
    margin-bottom: 28px;
}

/* ── Form ── */
.form-label {
    color: #374151;
    font-size: 0.83rem;
    font-weight: 600;
    margin-bottom: 6px;
    letter-spacing: 0.3px;
}

.input-group-text {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-right: none;
    color: #9ca3af;
}

.form-control {
    background: #ffffff;
    border: 1px solid #dee2e6;
    border-left: none;
    color: #1a1a2e;
    padding: 10px 14px;
    border-radius: 0 10px 10px 0;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.form-control::placeholder {
    color: #b0b8c1;
}

.form-control:focus {
    background: #fff;
    border-color: rgba(233, 69, 96, 0.6);
    box-shadow: 0 0 0 3px rgba(233, 69, 96, 0.12);
    color: #1a1a2e;
    outline: none;
}

.input-group-text + .form-control {
    border-left: none;
}

/* ── Show/Hide Password ── */
.toggle-pass {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-left: none;
    color: #9ca3af;
    cursor: pointer;
    border-radius: 0 10px 10px 0;
    padding: 0 14px;
    transition: color 0.2s;
}

.toggle-pass:hover { color: #e94560; }

.form-control.with-toggle {
    border-right: none;
    border-radius: 0;
}

/* ── Button ── */
.btn-login {
    background: linear-gradient(135deg, #e94560, #c23152);
    border: none;
    color: #fff;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 12px;
    border-radius: 12px;
    width: 100%;
    letter-spacing: 0.3px;
    box-shadow: 0 8px 20px rgba(233, 69, 96, 0.35);
    transition: all 0.3s ease;
    margin-top: 6px;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(233, 69, 96, 0.5);
    color: #fff;
}

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

/* ── Alert ── */
.alert-custom {
    border-radius: 10px;
    font-size: 0.85rem;
    padding: 10px 14px;
    border: none;
}

.alert-danger-custom {
    background: rgba(233, 69, 96, 0.12);
    color: #c23152;
    border-left: 3px solid #e94560;
}

.alert-success-custom {
    background: rgba(40, 167, 69, 0.12);
    color: #1e7e34;
    border-left: 3px solid #28a745;
}

/* ── Footer ── */
.login-footer {
    color: #b0b8c1;
    font-size: 0.75rem;
    text-align: center;
    margin-top: 24px;
}
