/* =========================================
   BUZZORA SELLER - GLASS LOGIN UI
   Mobile + Tablet + Desktop
   ========================================= */

html {
    min-height: 100%;
    background: #160908;
}

body.buzzora-login {
    min-height: 100vh;
    min-height: 100svh;
    margin: 0;
    color: #fff;
    font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
    background-color: #160908;

    /* Preserve existing background image */
    background-image:
        linear-gradient(
            180deg,
            rgba(12, 4, 8, .16),
            rgba(12, 4, 8, .40)
        ),
        url("/assets/images/buzzora-splash-background-v2.png");

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: scroll;
}

body.buzzora-login *,
body.buzzora-login *::before,
body.buzzora-login *::after {
    box-sizing: border-box;
}

body.buzzora-login a {
    text-decoration: none;
}

.login-page {
    width: 100%;
    max-width: 1240px;
    min-height: 100vh;
    min-height: 100svh;
    margin: 0 auto;
    padding: 38px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: clamp(28px, 5vw, 76px);
}

/* Brand side */

.login-brand {
    width: 100%;
    min-width: 0;
}

.login-brand-inner {
    width: 100%;
    max-width: 490px;
    margin: 0 auto;
}

.login-logo {
    display: block;
    width: min(100%, 300px);
    max-height: 300px;
    object-fit: contain;
    object-position: left center;
    margin-bottom: 24px;
}

.brand-wordmark {
    font-size: clamp(34px, 4vw, 52px);
    font-weight: 850;
    line-height: 1.05;
    letter-spacing: -1.5px;
    color: #fff;
    text-shadow: 0 3px 20px rgba(0, 0, 0, .3);
}

.brand-tagline {
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 300px;
    margin-top: 13px;
    color: #ffdc76;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 4px;
}

.brand-tagline span {
    height: 1px;
    flex: 1;
    background: linear-gradient(
        90deg,
        transparent,
        #e8b94e
    );
}

.brand-tagline span:last-child {
    transform: rotate(180deg);
}

.brand-promise {
    margin-top: 28px;
    font-size: 16px;
    font-weight: 650;
    letter-spacing: .4px;
}

.brand-promise span {
    color: #ffda70;
    padding: 0 5px;
}

.brand-description {
    max-width: 390px;
    margin-top: 12px;
    color: rgba(255, 255, 255, .82);
    font-size: 15px;
    line-height: 1.7;
}

/* Glass card */

.login-form-section {
    width: 100%;
    min-width: 0;
    display: flex;
    justify-content: center;
}

.login-glass-card {
    width: 100%;
    max-width: 470px;
    min-width: 0;
    padding: clamp(24px, 3vw, 36px);

    background: rgba(19, 13, 19, .72);
    border: 1px solid rgba(255, 255, 255, .19);
    border-radius: 26px;

    box-shadow:
        0 28px 80px rgba(0, 0, 0, .35),
        inset 0 1px 0 rgba(255, 255, 255, .07);

    backdrop-filter: blur(22px) saturate(135%);
    -webkit-backdrop-filter: blur(22px) saturate(135%);
}

/* Heading */

.login-heading {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 28px;
}

.login-heading-icon {
    width: 54px;
    height: 54px;
    flex: 0 0 54px;
    display: grid;
    place-items: center;

    color: #ffe28a;
    background: rgba(247, 201, 72, .10);
    border: 1px solid rgba(247, 201, 72, .25);
    border-radius: 16px;
}

.login-heading-icon svg {
    width: 27px;
    height: 27px;
}

.login-heading-text {
    min-width: 0;
}

.login-heading h1 {
    margin: 0;
    color: #fff;
    font-size: clamp(23px, 2.4vw, 30px);
    line-height: 1.25;
    font-weight: 750;
    letter-spacing: -.6px;
}

.login-heading p {
    margin: 7px 0 0;
    color: rgba(255, 255, 255, .67);
    font-size: 14px;
    line-height: 1.5;
}

/* Error messages */

.login-message {
    margin-bottom: 18px;
    padding: 12px 14px;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.login-error {
    color: #ffd6d6;
    background: rgba(229, 9, 20, .14);
    border: 1px solid rgba(255, 100, 100, .35);
}

/* Form */

.login-field {
    width: 100%;
    min-width: 0;
    margin-bottom: 19px;
}

.login-field label {
    display: block;
    margin-bottom: 9px;
    color: rgba(255, 255, 255, .91);
    font-size: 14px;
    font-weight: 650;
}

.login-input-wrap {
    display: flex;
    align-items: center;
    gap: 11px;
    width: 100%;
    min-width: 0;
    min-height: 53px;
    padding: 0 14px;

    background: rgba(4, 5, 11, .56);
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 13px;

    transition:
        border-color .2s ease,
        background .2s ease,
        box-shadow .2s ease;
}

.login-input-wrap:focus-within {
    border-color: rgba(255, 216, 105, .88);
    background: rgba(4, 5, 11, .76);
    box-shadow: 0 0 0 3px rgba(247, 201, 72, .10);
}

.login-input-wrap > svg {
    flex: 0 0 19px;
    width: 19px;
    height: 19px;
    color: rgba(255, 255, 255, .48);
}

.login-input-wrap input {
    width: 100%;
    min-width: 0;
    height: 51px;
    padding: 0;

    color: #fff;
    background: transparent;
    border: 0;
    outline: 0;
    box-shadow: none;
    font: inherit;
    font-size: 16px;
}

.login-input-wrap input:focus {
    outline: none;
    border: 0;
    box-shadow: none;
}

.login-input-wrap input::placeholder {
    color: rgba(255, 255, 255, .43);
}

.login-input-wrap input:-webkit-autofill,
.login-input-wrap input:-webkit-autofill:hover,
.login-input-wrap input:-webkit-autofill:focus {
    -webkit-text-fill-color: #fff;
    transition: background-color 99999s ease-in-out 0s;
}

/* Main button */

.login-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;

    width: 100%;
    min-height: 54px;
    padding: 14px 18px;

    color: #211606;
    background: linear-gradient(
        135deg,
        #ffe99a 0%,
        #f7c948 55%,
        #eab638 100%
    );

    border: 1px solid rgba(255, 240, 185, .75);
    border-radius: 14px;
    font: inherit;
    font-size: 15px;
    font-weight: 800;

    cursor: pointer;
    box-shadow: 0 10px 26px rgba(225, 167, 42, .17);

    transition:
        transform .2s ease,
        box-shadow .2s ease,
        filter .2s ease;
}

.login-submit svg {
    width: 19px;
    height: 19px;
}

.login-submit:hover {
    transform: translateY(-1px);
    filter: brightness(1.04);
    box-shadow: 0 13px 30px rgba(225, 167, 42, .24);
}

.login-submit:active {
    transform: translateY(0);
}

/* OR divider */

.login-divider {
    display: flex;
    align-items: center;
    gap: 13px;
    width: 100%;
    margin: 25px 0 18px;
}

.login-divider > span:first-child,
.login-divider > span:last-child {
    height: 1px;
    flex: 1;
    background: rgba(255, 255, 255, .14);
}

.login-divider .divider-label {
    color: rgba(255, 255, 255, .55);
    font-size: 10px;
    font-weight: 750;
    letter-spacing: 1.3px;
    white-space: nowrap;
}

/* Google sign-in button: use the published dark-theme colors and keep the
   multicolor Google G on a white tile so it remains clearly identifiable. */
.google-login {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    min-height: 52px;
    padding: 12px 14px;
    box-sizing: border-box;
    color: #E3E3E3;
    background: #131314;
    border: 1px solid #8E918F;
    border-radius: 8px;
    font-family: "Google Sans", Roboto, Arial, sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
    text-align: center;
    text-decoration: none;
    overflow-wrap: anywhere;
    transition: background .2s ease, border-color .2s ease, transform .2s ease;
}

.google-login:hover {
    color: #E3E3E3;
    background: #1E1F20;
    border-color: #A8AAA7;
}

.google-logo-tile {
    display: inline-grid;
    place-items: center;
    flex: 0 0 26px;
    width: 26px;
    height: 26px;
    box-sizing: border-box;
    background: #FFFFFF;
    border-radius: 4px;
}

.google-logo-tile svg {
    display: block;
    width: 20px;
    height: 20px;
}

/* Register */

.login-register {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 5px;

    margin-top: 23px;
    color: rgba(255, 255, 255, .67);
    font-size: 13px;
    line-height: 1.7;
    text-align: center;
}

.login-register a {
    color: #ffe18a;
    font-weight: 700;
}

.login-register a:hover {
    color: #fff0ba;
    text-decoration: underline;
}

/* Security note */

.login-security {
    display: flex;
    align-items: flex-start;
    gap: 10px;

    margin-top: 20px;
    padding: 13px;

    background: rgba(255, 255, 255, .035);
    border: 1px solid rgba(255, 255, 255, .09);
    border-radius: 12px;
}

.login-security svg {
    flex: 0 0 19px;
    width: 19px;
    height: 19px;
    margin-top: 1px;
    color: #e8c65e;
}

.login-security p {
    margin: 0;
    color: rgba(255, 255, 255, .66);
    font-size: 12px;
    line-height: 1.6;
}

/* Footer */

.login-footer {
    margin-top: 20px;
    color: rgba(255, 255, 255, .36);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 2px;
    text-align: center;
}

/* Tablet and mobile */

@media (max-width: 900px) {
    .login-page {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0;

        max-width: 560px;
        min-height: 100vh;
        min-height: 100svh;

        padding: 26px 22px 30px;
    }

    .login-brand {
        margin-bottom: 25px;
    }

    .login-brand-inner {
        max-width: 100%;
    }

    .login-logo {
        width: min(100%, 225px);
        max-height: 225px;
        margin-bottom: 17px;
    }

    .brand-wordmark {
        font-size: 36px;
    }

    .brand-tagline {
        margin-top: 10px;
    }

    .brand-promise {
        margin-top: 17px;
    }

    .brand-description {
        margin-top: 9px;
    }

    .login-form-section {
        display: block;
    }

    .login-glass-card {
        max-width: 100%;
    }
}

/* Small phones */

@media (max-width: 480px) {
    .login-page {
        padding: 20px 14px 25px;
    }

    .login-brand {
        margin-bottom: 21px;
    }

    .login-logo {
        width: min(100%, 185px);
        max-height: 185px;
        margin-bottom: 16px;
    }

    .brand-wordmark {
        font-size: 32px;
    }

    .brand-tagline {
        max-width: 265px;
        font-size: 10px;
        letter-spacing: 3px;
    }

    .brand-promise {
        font-size: 14px;
        margin-top: 16px;
    }

    .brand-description {
        max-width: 340px;
        font-size: 13px;
        line-height: 1.65;
    }

    .login-glass-card {
        padding: 22px 18px;
        border-radius: 22px;
        background: rgba(19, 13, 19, .77);
        backdrop-filter: blur(18px) saturate(130%);
        -webkit-backdrop-filter: blur(18px) saturate(130%);
    }

    .login-heading {
        gap: 13px;
        margin-bottom: 24px;
    }

    .login-heading-icon {
        width: 46px;
        height: 46px;
        flex-basis: 46px;
        border-radius: 14px;
    }

    .login-heading-icon svg {
        width: 24px;
        height: 24px;
    }

    .login-heading h1 {
        font-size: 23px;
    }

    .login-heading p {
        font-size: 12px;
    }

    .login-field {
        margin-bottom: 16px;
    }

    .login-field label {
        font-size: 13px;
    }

    .login-input-wrap {
        min-height: 50px;
        padding: 0 12px;
    }

    .login-input-wrap input {
        height: 48px;
        font-size: 16px;
    }

    .login-submit {
        min-height: 51px;
    }

    .login-divider {
        margin: 22px 0 16px;
    }

    .google-login {
        min-height: 50px;
        gap: 10px;
    }

    .login-register {
        margin-top: 20px;
        font-size: 12px;
    }

    .login-security {
        margin-top: 17px;
        padding: 11px;
    }
}

/* Very small screens */

@media (max-width: 350px) {
    .login-page {
        padding: 16px 9px 20px;
    }

    .login-glass-card {
        padding: 18px 12px;
        border-radius: 18px;
    }

    .login-logo {
        width: 155px;
        max-height: 155px;
    }

    .brand-wordmark {
        font-size: 29px;
    }

    .login-heading h1 {
        font-size: 21px;
    }

    .login-divider .divider-label {
        font-size: 9px;
        letter-spacing: .8px;
    }
}

/* Desktop */

@media (min-width: 901px) {
    .login-page {
        min-height: 100vh;
        min-height: 100svh;
    }
}

/* Accessibility */

@media (prefers-reduced-motion: reduce) {
    .buzzora-login *,
    .buzzora-login *::before,
    .buzzora-login *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        transition-duration: .01ms !important;
    }
}

/* BUZZORA Registration - Google button fix */
.buzzora-register .register-google {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    min-height: 54px;
    box-sizing: border-box;
    padding: 12px 18px;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 14px;
    background: rgba(255,255,255,.96);
    color: #202124;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    overflow: hidden;
}

.buzzora-register .register-google svg {
    display: block;
    width: 24px;
    height: 24px;
    min-width: 24px;
    flex: 0 0 24px;
}

.buzzora-register .register-google span {
    display: inline-block;
}

.buzzora-register .register-google:hover {
    background: #fff;
}

.buzzora-register .inline-css-1 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 20px 0;
}

.buzzora-register .inline-css-2,
.buzzora-register .inline-css-3 {
    flex: 1;
    height: 1px;
    background: rgba(255,255,255,.2);
}

/* BUZZORA Login - Centered responsive layout */
body {
    margin: 0;
}

body.buzzora-login {
    min-height: 100vh;
    min-height: 100dvh;
}

.buzzora-login .page {
    width: min(100% - 32px, 1080px);
    margin-inline: auto;
    box-sizing: border-box;
    align-items: center;
}

.buzzora-login .brand,
.buzzora-login .form-side {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.buzzora-login .brand-inner {
    width: 100%;
    max-width: 680px;
    margin-inline: auto;
    text-align: center;
}

.buzzora-login .brand-inner .logo {
    display: block;
    width: min(100%, 360px);
    height: auto;
    margin: 0 auto 24px;
    object-fit: contain;
}

.buzzora-login .form-side {
    display: flex;
    justify-content: center;
}

.buzzora-login .card {
    width: 100%;
    max-width: 680px;
    margin: 0 auto;
    box-sizing: border-box;
}

@media (min-width: 900px) {
    .buzzora-login .page {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 36px;
    }

    .buzzora-login .brand-inner {
        text-align: center;
    }

    .buzzora-login .card {
        max-width: 560px;
    }
}

@media (max-width: 899px) {
    .buzzora-login .page {
        display: flex;
        flex-direction: column;
        gap: 24px;
    }

    .buzzora-login .brand-inner {
        text-align: center;
    }

    .buzzora-login .card {
        max-width: 680px;
    }
}

/* BUZZORA LOGIN - CENTER THE COMPLETE BRAND SECTION */
body.buzzora-login .brand {
    width: 100%;
    display: flex;
    justify-content: center;
    text-align: center;
}

body.buzzora-login .brand-inner {
    width: 100%;
    max-width: 680px;
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center !important;
    display: flex;
    flex-direction: column;
    align-items: center;
}

body.buzzora-login .brand-inner .logo {
    display: block;
    width: min(80%, 360px);
    height: auto;
    margin: 0 auto 24px !important;
    align-self: center;
    object-fit: contain;
}

body.buzzora-login .brand-inner h1,
body.buzzora-login .brand-inner .tag,
body.buzzora-login .brand-inner .line,
body.buzzora-login .brand-inner .copy {
    width: 100%;
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

body.buzzora-login .brand-inner .steps {
    width: 100%;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

body.buzzora-login .form-side {
    width: 100%;
    display: flex;
    justify-content: center;
}

body.buzzora-login .card {
    width: 100%;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box;
}

/* FIX: Center the actual BUZZORA login logo and brand */
body.buzzora-login .login-brand {
    width: 100%;
    display: flex;
    justify-content: center;
    text-align: center;
}

body.buzzora-login .login-brand-inner {
    width: 100%;
    max-width: 490px;
    margin-left: auto !important;
    margin-right: auto !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center !important;
}

body.buzzora-login .login-logo {
    display: block;
    width: min(80%, 300px);
    max-height: 300px;
    height: auto;
    margin: 0 auto 24px !important;
    object-fit: contain;
    object-position: center center !important;
}

body.buzzora-login .brand-wordmark {
    width: 100%;
    text-align: center !important;
}

body.buzzora-login .brand-tagline {
    width: min(100%, 300px);
    margin: 13px auto 0 !important;
    justify-content: center;
    text-align: center;
}

body.buzzora-login .brand-promise,
body.buzzora-login .brand-description {
    width: 100%;
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center !important;
}

body.buzzora-login .brand-description {
    max-width: 390px;
}

@media (max-width: 900px) {
    body.buzzora-login .login-brand-inner {
        max-width: 100%;
    }

    body.buzzora-login .login-logo {
        width: min(80%, 225px);
        margin-left: auto !important;
        margin-right: auto !important;
    }
}
