/* assets/css/login.css - Dark Teal Edition */
:root {
    --teal-50: #f0fdfa;
    --teal-100: #ccfbf1;
    --teal-500: #14b8a6;
    --teal-600: #0d9488;
    --teal-700: #0f766e;
    --teal-800: #115e59;
    --teal-900: #134e4a;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-600: #4b5563;
    --gray-800: #1f2937;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body.login-page {
    font-family: 'Inter', sans-serif;
    background-color: var(--teal-50);
    color: var(--gray-800);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.app-shell {
    width: 100%;
    max-width: 420px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.brand-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    width: 100%;
}

.brand-logo {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--teal-500), var(--teal-700));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
}

.brand-logo img { width: 32px; height: 32px; object-fit: contain; }

.brand-id { flex: 1; }
.brand-id-name { font-weight: 700; font-size: 1.1rem; color: var(--teal-900); display: block; }
.brand-id-tag { font-size: 0.8rem; color: var(--gray-600); }

.brand-pill {
    background: var(--teal-100);
    color: var(--teal-700);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.headline { text-align: center; margin-bottom: 24px; }
.headline-title { font-size: 1.75rem; font-weight: 800; color: var(--teal-900); line-height: 1.2; }
.hl-accent { color: var(--teal-600); }
.headline-sub { font-size: 0.9rem; color: var(--gray-600); margin-top: 8px; line-height: 1.4; }

.hero-scene {
    position: relative;
    width: 200px;
    height: 200px;
    margin: 0 auto 32px;
}

.hero-blob {
    position: absolute;
    width: 180px;
    height: 180px;
    background: var(--teal-100);
    border-radius: 50%;
    top: 10px;
    left: 10px;
    filter: blur(20px);
    opacity: 0.6;
}

.bag-hero {
    position: relative;
    z-index: 2;
    width: 120px;
    height: 120px;
    margin: 40px auto 0;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.form-card {
    width: 100%;
    background: white;
    padding: 24px;
    border-radius: 16px;
    box-shadow: 0 10px 25px -5px rgba(15, 118, 110, 0.1), 0 8px 10px -6px rgba(15, 118, 110, 0.05);
}

.input-field {
    position: relative;
    margin-bottom: 16px;
}

.input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-600);
}

.form-input {
    width: 100%;
    padding: 12px 14px 12px 42px;
    border: 1.5px solid var(--gray-100);
    border-radius: 10px;
    font-size: 0.95rem;
    transition: all 0.2s;
    background: var(--gray-50);
}

.form-input:focus {
    outline: none;
    border-color: var(--teal-500);
    background: white;
    box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.1);
}

.toggle-password {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--gray-600);
    cursor: pointer;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    font-size: 0.85rem;
}

.checkbox-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: var(--gray-600);
}

.btn-login {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--teal-600), var(--teal-700));
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: transform 0.1s, box-shadow 0.2s;
    position: relative;
}

.btn-login:hover {
    box-shadow: 0 4px 12px rgba(13, 148, 136, 0.3);
    transform: translateY(-1px);
}

.btn-login:active { transform: translateY(0); }

.btn-loader { display: none; gap: 4px; }
.btn-login.loading .btn-text, .btn-login.loading .btn-arrow { display: none; }
.btn-login.loading .btn-loader { display: flex; }

.loader-dot {
    width: 6px;
    height: 6px;
    background: white;
    border-radius: 50%;
    animation: bounce 1.4s infinite ease-in-out both;
}
.loader-dot:nth-child(1) { animation-delay: -0.32s; }
.loader-dot:nth-child(2) { animation-delay: -0.16s; }

@keyframes bounce {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}

.security-info {
    text-align: center;
    margin-top: 16px;
    font-size: 0.75rem;
    color: var(--gray-600);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.app-footer {
    margin-top: 32px;
    text-align: center;
    font-size: 0.8rem;
    color: var(--gray-600);
}

.version-tag {
    display: inline-block;
    background: var(--teal-100);
    color: var(--teal-700);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    margin-left: 8px;
    font-weight: 600;
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    background: white;
    padding: 12px 16px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 280px;
    animation: slideIn 0.3s ease-out;
    border-left: 4px solid var(--gray-600);
}

.toast-success { border-left-color: #10b981; }
.toast-error { border-left-color: #ef4444; }
.toast-warning { border-left-color: #f59e0b; }

.toast-icon { font-size: 1.2rem; }
.toast-success .toast-icon { color: #10b981; }
.toast-error .toast-icon { color: #ef4444; }
.toast-warning .toast-icon { color: #f59e0b; }

.toast-content { flex: 1; font-size: 0.9rem; color: var(--gray-800); }
.toast-close { background: none; border: none; color: var(--gray-600); cursor: pointer; }

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}
/* ============================================
   PWA INSTALL BUTTON
   ============================================ */
.btn-install-app {
    width: 100%;
    padding: 12px;
    margin-top: 12px;
    background: linear-gradient(135deg, #134e4a 0%, #0f766e 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(13, 148, 136, 0.25);
    font-family: inherit;
}

.btn-install-app:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(13, 148, 136, 0.35);
}

.btn-install-app:active {
    transform: translateY(0);
}

.btn-install-app:disabled {
    cursor: not-allowed;
}

.btn-install-app i {
    font-size: 1rem;
}

/* Animasi pulse untuk tombol install */
.btn-install-app.animate-pulse {
    animation: installPulse 2s ease-in-out infinite;
}

@keyframes installPulse {
    0%, 100% {
        box-shadow: 0 4px 12px rgba(13, 148, 136, 0.25);
    }
    50% {
        box-shadow: 0 4px 20px rgba(13, 148, 136, 0.5), 0 0 0 8px rgba(20, 184, 166, 0.1);
    }
}

/* ============================================
   ADDITIONAL ANIMATIONS FOR HERO SCENE
   ============================================ */
.cloud {
    position: absolute;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    filter: blur(8px);
}

.cloud-1 {
    width: 60px;
    height: 30px;
    top: 20px;
    left: 30px;
    animation: floatCloud 6s ease-in-out infinite;
}

.cloud-2 {
    width: 40px;
    height: 20px;
    top: 50px;
    right: 20px;
    animation: floatCloud 8s ease-in-out infinite reverse;
}

@keyframes floatCloud {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(20px); }
}

.float-chip {
    position: absolute;
    width: 32px;
    height: 32px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(13, 148, 136, 0.2);
    z-index: 1;
}

.chip-note1 {
    top: 40px;
    right: 40px;
    color: var(--teal-600);
    animation: floatChip 4s ease-in-out infinite;
}

.chip-note2 {
    bottom: 40px;
    left: 30px;
    color: #fbbf24;
    animation: floatChip 5s ease-in-out infinite reverse;
}

@keyframes floatChip {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(10deg); }
}

.sparkle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: #fbbf24;
    border-radius: 50%;
    animation: sparkleAnim 1.5s ease-in-out infinite;
}

.sp-1 {
    top: 20px;
    left: 60px;
    animation-delay: 0s;
}

.sp-2 {
    top: 30px;
    right: 50px;
    animation-delay: 0.75s;
}

@keyframes sparkleAnim {
    0%, 100% {
        opacity: 0;
        transform: scale(0);
    }
    50% {
        opacity: 1;
        transform: scale(1.5);
    }
}

.hero-ground {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 20px;
    background: linear-gradient(to top, rgba(13, 148, 136, 0.1), transparent);
    border-radius: 50% 50% 0 0;
}