/* ============================================
   styles/userStyle.css
   Vegetable & Fruits Theme
   Palette: #1A312C | #2E7D32 | #D4EFB5
   ============================================ */
@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;600;700&display=swap");

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Roboto", system-ui, -apple-system, sans-serif;
}

body {
    background: #D4EFB5;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* ---------- Container ---------- */
.container {
    max-width: 500px;
    width: 100%;
    background: #ffffff;
    padding: 40px 30px;
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(26, 49, 44, 0.12);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #c8e0c8;
}

.container:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 36px rgba(26, 49, 44, 0.16);
}

/* ---------- Welcome Image ---------- */
.welcomeImage {
    text-align: center;
    margin-bottom: 28px;
}

.welcomeImage img {
    max-width: 140px;
    height: auto;
    border-radius: 12px;
}

/* ---------- Button Panel (Sign In / Sign Up) ---------- */
.button-panel {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 36px;
    flex-wrap: wrap;
}

.button-panel button {
    padding: 12px 28px;
    font-size: 1rem;
    font-weight: 700;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 130px;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    background: #e8f5e9;
    color: #1A312C;
    border: 1.5px solid #a5d6a7;
    box-shadow: 0 3px 10px rgba(26, 49, 44, 0.08);
}

.button-panel button:hover {
    background: #c8e6c9;
    transform: translateY(-2px);
    box-shadow: 0 5px 14px rgba(46, 125, 50, 0.18);
}

/* ACTIVE TAB */
.button-panel button.active {
    background: linear-gradient(135deg, #1A312C, #2E7D32);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 6px 18px rgba(26, 49, 44, 0.3);
    transform: translateY(-3px);
}

.button-panel button.active:hover {
    background: linear-gradient(135deg, #143028, #256b2a);
    transform: translateY(-4px);
    box-shadow: 0 8px 22px rgba(26, 49, 44, 0.35);
}

/* ---------- Forms ---------- */
.form {
    display: none;
}

#sign-in-form {
    display: block;
}

/* ---------- Input Boxes ---------- */
.input-box {
    position: relative;
    width: 100%;
    margin-bottom: 22px;
}

.input-box label {
    color: #1A312C;
    font-weight: 700;
    font-size: 0.93rem;
    margin-bottom: 7px;
    display: block;
}

/* Shared styles for input + select */
.input-box input,
.input-box select {
    height: 48px;
    width: 100%;
    outline: none;
    font-size: 0.95rem;
    color: #1A312C;
    border: 1.5px solid #c8e0c8;
    border-radius: 12px;
    padding: 0 16px;
    background: #f9fcf9;
    transition: all 0.25s ease;
    font-family: inherit;
}

.input-box input:hover,
.input-box select:hover {
    border-color: #2E7D32;
}

.input-box input:focus,
.input-box select:focus {
    border-color: #2E7D32;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(46, 125, 50, 0.15);
}

.input-box input[readonly] {
    background: #eef7ee;
    color: #1A312C;
}

/* ---------- Custom Select Styling ---------- */
.input-box select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
    padding-right: 42px; /* space for custom arrow */
    
    /* Custom green dropdown arrow */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%232E7D32' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 14px;
}

.input-box select:hover {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%231A312C' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
}

.input-box select:focus {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%232E7D32' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
}

/* Option styling (limited browser support, but helps) */
.input-box select option {
    background: #ffffff;
    color: #1A312C;
    padding: 12px;
    font-size: 0.95rem;
}

/* ---------- Column (Side by side inputs) ---------- */
.column {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    width: 100%;
}

.column .input-box {
    flex: 1;
    min-width: 160px;
}

/* ---------- Address Box ---------- */
.address-box {
    background: linear-gradient(135deg, #f0f9f0, #e8f5e9);
    border: 1.5px solid #c8e0c8;
    border-radius: 14px;
    padding: 16px 18px;
    margin: 14px 0;
    box-shadow: 0 4px 14px rgba(26, 49, 44, 0.06);
    transition: all 0.3s ease;
}

.address-box:hover {
    box-shadow: 0 6px 18px rgba(26, 49, 44, 0.1);
    transform: translateY(-2px);
}

.address-text {
    font-size: 0.95rem;
    color: #1A312C;
    font-weight: 500;
    line-height: 1.55;
    margin: 0;
}

/* ---------- Location Status ---------- */
.location-status {
    font-size: 0.85rem;
    color: #2E7D32;
    margin-top: 8px;
    font-weight: 600;
}

.location-error {
    color: #c62828;
}

/* ---------- Landmark ---------- */
.landmark-input {
    margin-bottom: 18px;
}

.landmark-input label {
    color: #1A312C;
    font-weight: 700;
    font-size: 0.93rem;
    margin-bottom: 7px;
    display: block;
}

.landmark-input input {
    height: 48px;
    width: 100%;
    border: 1.5px solid #c8e0c8;
    border-radius: 12px;
    padding: 0 16px;
    font-size: 0.95rem;
    color: #1A312C;
    background: #f9fcf9;
    outline: none;
    transition: all 0.25s ease;
}

.landmark-input input:focus {
    border-color: #2E7D32;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(46, 125, 50, 0.15);
}

.landmark-input small {
    color: #5a7a5a;
    font-size: 0.8rem;
    margin-top: 6px;
    display: block;
}

/* ---------- Submit Buttons ---------- */
.form button[type="submit"],
.form button:not(.toggle-password) {
    height: 50px;
    width: 100%;
    color: #fff;
    font-size: 1.05rem;
    font-weight: 700;
    margin-top: 18px;
    border: none;
    border-radius: 50px;
    background: linear-gradient(135deg, #1A312C, #2E7D32);
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.3px;
    box-shadow: 0 6px 18px rgba(26, 49, 44, 0.25);
}

.form button[type="submit"]:hover,
.form button:not(.toggle-password):hover {
    background: linear-gradient(135deg, #143028, #256b2a);
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(26, 49, 44, 0.32);
}

.form button[type="submit"]:disabled {
    background: #a5d6a7;
    color: #e8f5e9;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

/* ---------- Toggle Password (if used later) ---------- */
.toggle-password {
    display: block;
    width: 100%;
    text-align: center;
    margin-top: 6px;
    background: none;
    border: none;
    color: #2E7D32;
    font-size: 0.85rem;
    cursor: pointer;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 480px) {
    body {
        padding: 12px;
    }

    .container {
        padding: 30px 20px;
        border-radius: 16px;
    }

    .welcomeImage img {
        max-width: 120px;
    }

    .button-panel {
        gap: 12px;
        margin-bottom: 30px;
    }

    .button-panel button {
        padding: 11px 22px;
        font-size: 0.92rem;
        min-width: 120px;
    }

    .input-box input,
    .input-box select,
    .landmark-input input {
        height: 46px;
        font-size: 0.92rem;
    }

    .form button[type="submit"] {
        height: 48px;
        font-size: 1rem;
    }

    .column {
        flex-direction: column;
        gap: 0;
    }

    .column .input-box {
        min-width: 100%;
    }
}

@media (max-width: 360px) {
    .container {
        padding: 26px 16px;
    }

    .welcomeImage img {
        max-width: 105px;
    }

    .button-panel {
        gap: 10px;
    }

    .button-panel button {
        padding: 10px 18px;
        font-size: 0.88rem;
        min-width: 110px;
    }

    .input-box label,
    .landmark-input label {
        font-size: 0.88rem;
    }

    .input-box input,
    .input-box select,
    .landmark-input input {
        height: 44px;
        font-size: 0.88rem;
    }

    .form button[type="submit"] {
        height: 46px;
        font-size: 0.95rem;
    }

    .address-box {
        padding: 14px;
    }

    .address-text {
        font-size: 0.9rem;
    }
}