* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow-x: hidden;
}

body {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 50%, #15803d 100%);
    color: #fff;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 50%, #15803d 100%);
    z-index: -1;
}

.container {
    display: flex;
    min-height: 100vh;
    width: 100%;
    max-width: 100vw;
    flex-direction: row;
    margin: 0;
    padding: 0;
}

.left {
    background: #111827;
    padding: 40px 60px;
    width: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100vh;
}

.right {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 50%, #15803d 100%);
    padding: 40px;
    width: 50%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

.right > div {
    position: relative;
    z-index: 2;
}

.right::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 50%, #15803d 100%);
    z-index: 1;
}

.logo {
    color: #388041;
    font-weight: bold;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

h1,
h2 {
    font-size: 2rem;
    margin-bottom: 10px;
    line-height: 1.2;
}

p {
    opacity: 0.8;
    margin-bottom: 20px;
    font-size: 1rem;
}

.btn-google {
    background: #388041;
    color: #000;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    padding: 12px 16px;
    font-size: 1rem;
}

.btn-facebook {
    background: #1877f2;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    padding: 12px 16px;
    font-size: 1rem;
}

.form-control {
    background: #374151;
    border: none;
    color: #fff;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 1rem;
}

.form-control::placeholder {
    color: #9ca3af;
}

.sign-in-btn {
    background: #388041;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    padding: 12px;
    font-size: 1rem;
}

.phone-mockup {
    background: #fff;
    border-radius: 40px;
    padding: 20px;
    width: 280px;
    height: 560px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    color: #000;
    position: relative;
    max-width: 100%;
}

.phone-notch {
    background: #000;
    width: 120px;
    height: 20px;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
}

.phone-time {
    position: absolute;
    top: 10px;
    left: 20px;
    font-size: 0.8rem;
}

.phone-icons {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 0.8rem;
}

.user-profile {
    text-align: center;
    margin-top: 40px;
}

.balance {
    font-size: 1.8rem;
    color: #77ae59;
    font-weight: bold;
}

.savings-list {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.savings-list li {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.quick-send {
    display: flex;
    justify-content: space-around;
    margin-bottom: 20px;
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #d1d5db;
}

.buy-now {
    background: #ef4444;
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 10px 20px;
    font-size: 0.9rem;
    position: absolute;
    bottom: 20px;
    right: 20px;
}

.alert {
    margin-bottom: 20px;
    border-radius: 8px;
}

#loading {
    display: none;
    text-align: center;
    color: #22c55e;
    margin-top: 10px;
}

/* Tablet Styles */
@media (max-width: 1024px) and (min-width: 769px) {
    .container {
        flex-direction: column;
    }

    .left,
    .right {
        width: 100%;
        min-height: auto;
    }

    .left {
        padding: 30px 40px;
        order: 1;
    }

    .right {
        padding: 30px;
        order: 2;
    }

    .phone-mockup {
        width: 240px;
        height: 480px;
    }

    h1,
    h2 {
        font-size: 1.8rem;
    }
}

/* Mobile Styles */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
        min-height: 100vh;
    }

    .left {
        width: 100%;
        padding: 20px;
        min-height: auto;
        order: 1;
    }

    .right {
        width: 100%;
        padding: 20px;
        min-height: 40vh;
        order: 2;
        display: none;
        /* Hide phone mockup on mobile for better UX */
    }

    .logo {
        font-size: 1.3rem;
        margin-bottom: 15px;
    }

    h1,
    h2 {
        font-size: 1.6rem;
        margin-bottom: 8px;
    }

    p {
        font-size: 0.9rem;
        margin-bottom: 15px;
    }

    .btn-google,
    .btn-facebook,
    .form-control,
    .sign-in-btn {
        padding: 14px 16px;
        font-size: 1rem;
        margin-bottom: 15px;
    }

    .form-check-label {
        font-size: 0.9rem;
    }

    .alert {
        font-size: 0.9rem;
        padding: 12px;
    }
}

/* Small Mobile Styles */
@media (max-width: 480px) {
    .left {
        padding: 15px;
    }

    .logo {
        font-size: 1.2rem;
    }

    h1,
    h2 {
        font-size: 1.4rem;
    }

    p {
        font-size: 0.85rem;
    }

    .btn-google,
    .btn-facebook,
    .form-control,
    .sign-in-btn {
        padding: 12px 14px;
        font-size: 0.95rem;
    }
}

/* Large Desktop Styles */
@media (min-width: 1400px) {
    .left {
        padding: 60px 80px;
    }

    .right {
        padding: 60px;
    }

    .phone-mockup {
        width: 320px;
        height: 640px;
    }

    h1,
    h2 {
        font-size: 2.5rem;
    }

    p {
        font-size: 1.1rem;
    }
}

/* Landscape Mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .container {
        flex-direction: row;
    }

    .left {
        width: 60%;
        padding: 20px 30px;
    }

    .right {
        width: 40%;
        display: none;
        /* Hide mockup in landscape mobile */
    }

    h1,
    h2 {
        font-size: 1.3rem;
        margin-bottom: 5px;
    }

    p {
        font-size: 0.8rem;
        margin-bottom: 10px;
    }

    .btn-google,
    .btn-facebook,
    .form-control,
    .sign-in-btn {
        padding: 8px 12px;
        font-size: 0.9rem;
        margin-bottom: 8px;
    }
}

/* Focus states for better accessibility */
.form-control:focus {
    outline: 2px solid #22c55e;
    outline-offset: 2px;
}

.btn:focus {
    outline: 2px solid #22c55e;
    outline-offset: 2px;
}

/* Hover effects */
.btn-google:hover {
    background: #22c55e;
    color: #fff;
}

.btn-facebook:hover {
    background: #1565c0;
}

.sign-in-btn:hover {
    background: #16a34a;
}

/* Loading animation */
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

#loading::before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #22c55e;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 10px;
}

/* Register specific styles */
.field-hidden {
    display: none;
}

.btn-location {
    background: #388041;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 8px 16px;
    font-size: 0.9rem;
    margin-top: 8px;
    cursor: pointer;
}

.btn-location:hover {
    background: #22c55e;
}

.location-status {
    font-size: 0.8rem;
    margin-top: 4px;
}

/* Tukang Gerobak Styles */
.filter-buttons {
    display: flex;
    gap: 6px;
    margin: 12px 0;
    justify-content: center;
    flex-shrink: 0;
}

.filter-btn {
    background: #f1f5f9;
    color: #64748b;
    border: none;
    border-radius: 16px;
    padding: 6px 12px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.filter-btn.active {
    background: #22c55e;
    color: white;
}

.vendor-list {
    margin: 12px 0;
    max-height: 300px;
    overflow-y: auto;
    padding: 0 4px 60px 4px;
    flex: 1;
}

.vendor-card {
    background: white;
    border-radius: 8px;
    padding: 12px;
    margin: 6px 0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid #f1f5f9;
}

.vendor-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.vendor-icon {
    width: 36px;
    height: 36px;
    background: #22c55e;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.vendor-icon img {
    width: 20px;
    height: 20px;
    filter: brightness(0) invert(1);
}

.vendor-info {
    flex: 1;
    min-width: 0;
}

.vendor-name {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3px;
}

.vendor-name span:first-child {
    font-weight: 600;
    color: #1e293b;
    font-size: 0.85rem;
}

.status {
    background: #22c55e;
    color: white;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 500;
}

.vendor-desc {
    color: #64748b;
    font-size: 0.75rem;
    margin: 2px 0;
    line-height: 1.3;
}

.vendor-distance {
    display: flex;
    align-items: center;
    gap: 3px;
    color: #64748b;
    font-size: 0.7rem;
}

.location-icon {
    font-size: 0.7rem;
}

.vendor-arrow {
    color: #64748b;
    font-size: 1rem;
    font-weight: bold;
    margin-left: 8px;
}

.bottom-nav {
    display: flex;
    justify-content: space-around;
    background: white;
    border-top: 1px solid #e2e8f0;
    padding: 8px 0;
    margin-top: auto;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    border-radius: 0 0 20px 20px;
    height: 60px;
    z-index: 10;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 4px 8px;
    border-radius: 4px;
    color: #64748b;
    font-size: 0.7rem;
    font-weight: 500;
    height: 100%;
    min-height: 44px;
}

.nav-item.active {
    color: #22c55e;
    background: rgba(34, 197, 94, 0.1);
}

.nav-item span {
    font-size: 0.7rem;
    font-weight: 500;
    margin-top: 2px;
}

.nav-icon {
    font-size: 1rem;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Mobile mockup improvements */
.phone-mockup {
    position: relative;
    background: #f8fafc;
    border-radius: 20px;
    padding: 16px 16px 0 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    max-width: 300px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    height: 500px;
    overflow: hidden;
    z-index: 2;
}

.phone-mockup h1 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 4px 0;
    flex-shrink: 0;
}

.phone-mockup p {
    font-size: 0.8rem;
    color: #64748b;
    margin: 0 0 12px 0;
    flex-shrink: 0;
}

.phone-notch {
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: #000;
    border-radius: 2px;
}

.phone-time {
    position: absolute;
    top: 8px;
    left: 16px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #000;
}

.phone-icons {
    position: absolute;
    top: 8px;
    right: 16px;
    font-size: 0.7rem;
    color: #000;
}