/* resources/form.css
   Common styles for Shopitr forms + navbar (Inter + Oswald fonts like previous site)
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700;800&family=Oswald:wght@500;700&display=swap');

:root {
    --accent1: #ff6600;
    --accent2: #ff8a33;
    --bg: #f8f9fb;
    --card: #ffffff;
    --muted: #9aa4b2;
    --shadow: rgba(10, 20, 30, 0.06);
}

/* ----------------- Base ----------------- */
* {
    box-sizing: border-box
}

html,
body {
    height: 100%
}

body {
    margin: 0;
    font-family: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    background: var(--bg);
    color: #111;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ----------------- NAVBAR (Shopitr) ----------------- */
.shopitr-navbar {
    width: 100%;
    background: transparent;
    border-bottom: 1px solid rgba(14, 20, 30, 0.04);
    position: relative;
    z-index: 1000;
    font-family: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

.shopitr-nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Logo-style */
.shopitr-logo {
    font-family: 'Oswald', 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    font-weight: 700;
    font-size: 22px;
    letter-spacing: -1px;
    text-transform: none;
    color: var(--accent1);
    background: linear-gradient(90deg, #ff8a33 0%, #ff6600 50%, #ff4b00 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    transform: skewX(-6deg) scaleX(0.96);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    filter: drop-shadow(0 6px 12px rgba(255, 102, 0, 0.08));
}

/* Right group */
.shopitr-nav-right {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
}

/* Generic button */
.shopitr-btn {
    text-decoration: none;
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid #eee;
    background: #fff;
    color: #111;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease;
}

/* Cart */
.shopitr-cart {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px
}

.shopitr-cart .shopitr-cart-badge {
    background: var(--accent1);
    color: #fff;
    border-radius: 999px;
    padding: 2px 8px;
    font-weight: 700;
    font-size: 12px;
    line-height: 1;
    margin-left: 6px;
}

/* User menu (static placeholder on these pages) */
.shopitr-user-menu {
    position: relative;
    display: none
}

.shopitr-user-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    border-radius: 8px;
    border: 1px solid #eee;
    padding: 6px 8px;
    background: #fff;
    cursor: pointer;
    font-weight: 600
}

.shopitr-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    display: inline-block
}

.shopitr-dropdown {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    min-width: 200px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(10, 20, 30, 0.06);
    padding: 8px;
    z-index: 200
}

.shopitr-dropdown a {
    display: block;
    padding: 8px;
    color: #222;
    text-decoration: none;
    border-radius: 6px;
    font-size: 14px
}

.shopitr-dropdown a:hover {
    background: #f6f8fb
}

/* Create store flashy-but-no-whiteflash button (uses accent palette) */
.shopitr-create-store {
    background: linear-gradient(90deg, #ff7a00, #ff006a, #ff6600);
    background-size: 220% auto;
    color: #fff !important;
    font-weight: 700;
    padding: 8px 12px;
    border-radius: 10px;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    box-shadow: 0 6px 22px rgba(255, 102, 0, 0.18);
    transform: translateZ(0);
    transition: transform .22s ease, box-shadow .22s ease, filter .22s ease;
    filter: brightness(1);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* subtle sparkle at hover, NO white flash */
.shopitr-create-store:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 10px 36px rgba(255, 102, 0, 0.36);
    filter: brightness(1.08);
}

.shopitr-create-store::after {
    content: '✨';
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    transition: opacity .36s, right .36s;
}

.shopitr-create-store:hover::after {
    opacity: 1;
    right: 6px
}

/* ----------------- Forms (cards) ----------------- */
.shopitr-container {
    max-width: 420px;
    margin: 80px auto;
    background: var(--card);
    padding: 36px;
    border-radius: 14px;
    box-shadow: 0 10px 30px var(--shadow);
    text-align: left;
}

.shopitr-container h1 {
    font-family: 'Oswald', sans-serif;
    font-size: 28px;
    color: var(--accent1);
    margin: 0 0 18px 0;
    letter-spacing: -0.5px;
}

/* inputs */
.shopitr-input {
    width: 100%;
    padding: 12px 14px;
    margin-bottom: 12px;
    border-radius: 10px;
    border: 1px solid #e6e9ee;
    font-size: 15px;
    transition: border .18s ease, box-shadow .18s ease;
}

.shopitr-input:focus {
    border-color: var(--accent1);
    box-shadow: 0 0 0 6px rgba(255, 102, 0, 0.08);
    outline: none;
}

/* primary submit */
.shopitr-btn.form-submit {
    width: 100%;
    background: linear-gradient(90deg, #ff8a33, #ff6600, #ff4b00);
    background-size: 200% auto;
    color: #fff;
    font-weight: 700;
    border: none;
    border-radius: 10px;
    padding: 12px;
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, background-position 4s linear;
    animation: btnGradientMove 6s linear infinite;
    display: inline-block;
    text-align: center;
}

/* small misc */
.shopitr-link {
    color: var(--accent1);
    font-weight: 600;
    text-decoration: none
}

.shopitr-link:hover {
    text-decoration: underline
}

#login-msg,
#register-msg {
    color: #d64545;
    margin-bottom: 10px;
    font-weight: 700;
    font-size: 14px
}

/* ----------------- Responsive ----------------- */


@media (max-width:720px) {
    .shopitr-logo {
        font-size: 18px;
        transform: skewX(-5deg) scaleX(0.97)
    }

    .shopitr-nav-right {
        gap: 8px
    }

    .shopitr-btn {
        padding: 7px 8px;
        font-size: 14px
    }

    .shopitr-container {
        margin: 48px auto;
        padding: 26px
    }

    .shopitr-create-store {
        padding: 7px 10px;
        border-radius: 8px
    }
}

/* mobile stack for navbar (small screens) */
@media (max-width:450px) {
    
    .shopitr-logo {
        font-size: 18px;
        transform: skewX(-5deg) scaleX(0.97)
    }

    .shopitr-nav-right {
        gap: 8px
    }

    .shopitr-btn {
        padding: 7px 8px;
        font-size: 14px
    }

    .shopitr-container {
        margin: 48px 16px;
        padding: 26px
    }

    .shopitr-create-store {
        padding: 7px 10px;
        border-radius: 8px
    }
    .shopitr-logo {
        font-size: 18px;
        transform: skewX(-5deg) scaleX(0.97)
    }

    .shopitr-nav-right {
        gap: 8px
    }

    .shopitr-btn {
        padding: 7px 8px;
        font-size: 14px
    }

    .shopitr-container {
        margin: 48px 16px;
        padding: 26px
    }

    .shopitr-create-store {
        padding: 7px 10px;
        border-radius: 8px
    }
}