* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    background: linear-gradient(135deg, #1877F2 0%, #0e5ebf 100%);
    min-height: 100vh;
    padding: 20px;
}
.container {
    max-width: 400px;
    margin: 60px auto;
}
.card {
    background: white;
    border-radius: 24px;
    padding: 32px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}
.logo {
    text-align: center;
    margin-bottom: 24px;
}
.logo img {
    width: 60px;
    height: auto;
}
h1 {
    font-size: 24px;
    color: #1877F2;
    text-align: center;
    margin-bottom: 8px;
}
.subtitle {
    text-align: center;
    color: #666;
    font-size: 14px;
    margin-bottom: 28px;
}
.form-group {
    margin-bottom: 20px;
}
label {
    display: block;
    font-weight: 600;
    font-size: 14px;
    color: #333;
    margin-bottom: 8px;
}
.required::after {
    content: " *";
    color: red;
}
input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #ddd;
    border-radius: 12px;
    font-size: 15px;
    font-family: inherit;
    transition: all 0.3s ease;
}
input:focus {
    outline: none;
    border-color: #1877F2;
    box-shadow: 0 0 0 3px rgba(24,119,242,0.1);
}
.btn-submit {
    width: 100%;
    background: #1877F2;
    color: white;
    border: none;
    padding: 14px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 40px;
    cursor: pointer;
    transition: 0.3s;
}
.btn-submit:hover {
    background: #1464c9;
    transform: translateY(-2px);
}
.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}
.error-message {
    background: #fee2e2;
    border: 1px solid #ef4444;
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 20px;
    color: #dc2626;
    font-size: 14px;
    display: none;
}
.success-message {
    background: #dcfce7;
    border: 1px solid #22c55e;
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 20px;
    color: #16a34a;
    font-size: 14px;
    display: none;
}
.info-text {
    text-align: center;
    margin-top: 20px;
    font-size: 13px;
    color: #666;
}
.info-text a {
    color: #1877F2;
    text-decoration: none;
}
.footer {
    text-align: center;
    margin-top: 20px;
    font-size: 11px;
    color: rgba(255,255,255,0.7);
}
.password-wrapper {
    position: relative;
}
.toggle-password {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #999;
    font-size: 18px;
    user-select: none;
}

.install-banner {
    display: none;
    background: #1877F2;
    color: white;
    padding: 10px 16px;
    border-radius: 12px;
    margin-bottom: 16px;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.install-banner.show {
    display: flex;
}
.install-banner p {
    font-size: 13px;
    font-weight: 500;
    flex: 1;
}
.install-banner .btn-install {
    background: white;
    color: #1877F2;
    border: none;
    padding: 6px 16px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    transition: 0.2s;
    white-space: nowrap;
}
.install-banner .btn-install:hover {
    transform: scale(1.05);
}
.install-banner .btn-close-install {
    background: transparent;
    border: none;
    color: white;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    padding: 6px 12px;
    border-radius: 16px;
    transition: 0.2s;
    opacity: 0.8;
    white-space: nowrap;
}
.install-banner .btn-close-install:hover {
    background: rgba(255,255,255,0.15);
    opacity: 1;
}

.toast-notification {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    padding: 14px 28px;
    border-radius: 30px;
    color: white;
    font-size: 15px;
    z-index: 9999;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    animation: toastFadeInOut 3.5s ease;
    max-width: 90%;
    text-align: center;
}
.toast-success { background: #1877F2; }
.toast-error { background: #dc3545; }
.toast-info { background: #17a2b8; }
@keyframes toastFadeInOut {
    0% { opacity: 0; transform: translateX(-50%) translateY(20px); }
    15% { opacity: 1; transform: translateX(-50%) translateY(0); }
    85% { opacity: 1; transform: translateX(-50%) translateY(0); }
    100% { opacity: 0; transform: translateX(-50%) translateY(20px); }
}

.loading-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 18px;
    flex-direction: column;
    gap: 15px;
}
.loading-overlay.show {
    display: flex;
}
.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255,255,255,0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}

@media (max-width: 420px) {
    .card { padding: 24px 20px; }
    .install-banner { flex-wrap: wrap; }
    .install-banner .btn-install { width: 100%; text-align: center; }
    .install-banner .btn-close-install { width: 100%; text-align: center; }
}

.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.modal-overlay.show {
    display: flex;
}
.modal-box {
    background: white;
    border-radius: 24px;
    padding: 28px 24px;
    max-width: 380px;
    width: 100%;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0,0,0,0.25);
}
.modal-box h2 {
    font-size: 20px;
    color: #1877F2;
    margin-bottom: 12px;
}
.modal-lead {
    font-weight: 700;
    color: #16a34a;
    margin-bottom: 10px;
}
.modal-text {
    font-size: 14px;
    color: #444;
    line-height: 1.5;
    margin-bottom: 20px;
}
.modal-box .btn-submit {
    display: block;
    text-decoration: none;
    margin-bottom: 10px;
}
.btn-wa {
    background: #16a34a;
}
.btn-wa:hover {
    background: #128a3e;
}
.btn-login {
    display: none !important;
    background: #1877F2;
}
.btn-login.show {
    display: block !important;
}
