/* ============================================
   styles/userStyle.css
   Warm Cream / Brown / Orange Theme
   Palette: #654321 | #d97706 | #fffef5 | #f8e1c9 | #d4a373
   ============================================ */
@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: linear-gradient(135deg, #fdf6e8, #f8e1c9);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* ---------- Container ---------- */
.container {
    max-width: 500px;
    width: 100%;
    background: #fffef5;
    padding: 40px 30px;
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(101, 67, 33, 0.12);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e8d5b5;
}

.container:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 36px rgba(101, 67, 33, 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: #f7ece1;
    color: #654321;
    border: 1.5px solid #d4a373;
    box-shadow: 0 3px 10px rgba(101, 67, 33, 0.08);
}

.button-panel button:hover {
    background: #f0d9b8;
    transform: translateY(-2px);
    box-shadow: 0 5px 14px rgba(217, 119, 6, 0.18);
}

/* ACTIVE TAB */
.button-panel button.active {
    background: linear-gradient(135deg, #d97706, #f59e0b);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 6px 18px rgba(217, 119, 6, 0.3);
    transform: translateY(-3px);
}

.button-panel button.active:hover {
    background: linear-gradient(135deg, #b35900, #d97706);
    transform: translateY(-4px);
    box-shadow: 0 8px 22px rgba(179, 89, 0, 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: #654321;
    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: #654321;
    border: 1.5px solid #d4a373;
    border-radius: 12px;
    padding: 0 16px;
    background: #fffef5;
    transition: all 0.25s ease;
    font-family: inherit;
}

.input-box input:hover,
.input-box select:hover {
    border-color: #d97706;
}

.input-box input:focus,
.input-box select:focus {
    border-color: #d97706;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(217, 119, 6, 0.15);
}

.input-box input[readonly] {
    background: #f7ece1;
    color: #8b5a2b;
}

/* ---------- Custom Select Styling ---------- */
.input-box select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
    padding-right: 42px;
    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='%23d97706' 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='%23654321' 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='%23d97706' 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 option {
    background: #ffffff;
    color: #654321;
    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, #fffef5, #f7ece1);
    border: 1.5px solid #d4a373;
    border-radius: 14px;
    padding: 16px 18px;
    margin: 14px 0;
    box-shadow: 0 4px 14px rgba(101, 67, 33, 0.06);
    transition: all 0.3s ease;
}

.address-box:hover {
    box-shadow: 0 6px 18px rgba(101, 67, 33, 0.1);
    transform: translateY(-2px);
}

.address-text {
    font-size: 0.95rem;
    color: #654321;
    font-weight: 500;
    line-height: 1.55;
    margin: 0;
}

/* ---------- Location Status ---------- */
.location-status {
    font-size: 0.85rem;
    color: #d97706;
    margin-top: 8px;
    font-weight: 600;
}

.location-error {
    color: #c62828;
}

/* ---------- Landmark ---------- */
.landmark-input {
    margin-bottom: 18px;
}

.landmark-input label {
    color: #654321;
    font-weight: 700;
    font-size: 0.93rem;
    margin-bottom: 7px;
    display: block;
}

.landmark-input input {
    height: 48px;
    width: 100%;
    border: 1.5px solid #d4a373;
    border-radius: 12px;
    padding: 0 16px;
    font-size: 0.95rem;
    color: #654321;
    background: #fffef5;
    outline: none;
    transition: all 0.25s ease;
}

.landmark-input input:focus {
    border-color: #d97706;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(217, 119, 6, 0.15);
}

.landmark-input small {
    color: #8b5a2b;
    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, #d97706, #f59e0b);
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.3px;
    box-shadow: 0 6px 18px rgba(217, 119, 6, 0.25);
}

.form button[type="submit"]:hover,
.form button:not(.toggle-password):hover {
    background: linear-gradient(135deg, #b35900, #d97706);
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(179, 89, 0, 0.32);
}

.form button[type="submit"]:disabled {
    background: #e8c9a0;
    color: #fffef5;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

/* ---------- Toggle Password ---------- */
.toggle-password {
    display: block;
    width: 100%;
    text-align: center;
    margin-top: 6px;
    background: none;
    border: none;
    color: #d97706;
    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;
    }
}