/* SHIP FAST NY — Customer Portal Redesign */

body {
    background: #ffffff !important;
    background-image: none !important;
    font-family: Arial, Helvetica, sans-serif;
}

#account {
    color: #30343b;
}

#account button[type="submit"] {
    background-color: #f47721 !important;
    color: #ffffff !important;
    border-radius: 8px;
    font-weight: 700;
}

#account button[type="submit"]:hover {
    background-color: #d95d0e !important;
}

#account input:focus {
    border-color: #f47721 !important;
    box-shadow: 0 0 0 2px rgba(244,119,33,0.15);
}

a {
    color: #f47721;
}

/* Center the existing customer login form */
body:has(#account) {
    background: #f6f7f9 !important;
    background-image: none !important;
    min-height: 100vh !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
}

body:has(#account) #account {
    width: 100%;
}

body:has(#account) .fixed:has(#account) {
    position: relative !important;
    top: auto !important;
    right: auto !important;
    width: 100% !important;
    max-width: 480px !important;
    margin: 0 auto !important;
    padding: 20px !important;
}

/* Display the Ship Fast NY logo above the existing login form */
body:has(#account) .bg-white:has(#account)::before {
    content: "";
    display: block;
    width: 210px;
    height: 90px;
    margin: 0 auto 18px;
    background-image: url("/branding/shipfast-ny-brand-logo.png");
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
}

/* Approved registration page finishing touches */

body:has(#registerForm) header,
body:has(#registerForm) > nav,
body:has(#registerForm) .navbar {
    display: none !important;
}

body:has(#registerForm) main {
    padding-top: 20px !important;
}

body:has(#registerForm) footer {
    text-align: center !important;
    color: #64748b !important;
    font-size: 14px !important;
}

body:has(#registerForm) footer a {
    color: #f47721 !important;
}

/* SHIP FAST NY — Registration form design */

body:has(#registerForm) {
    background: #f6f7f9 !important;
}

body:has(#registerForm) main h1 {
    display: none !important;
}

body:has(#registerForm) .row:has(#registerForm) {
    justify-content: center !important;
}

body:has(#registerForm) .row:has(#registerForm) > :not(:has(#registerForm)) {
    display: none !important;
}

body:has(#registerForm) .col-md-4:has(#registerForm) {
    width: 100% !important;
    max-width: 520px !important;
    flex: 0 0 100% !important;
    margin: 20px auto !important;
}

#registerForm {
    width: 100% !important;
    padding: 32px !important;
    background: white !important;
    border-radius: 16px !important;
    box-shadow: 0 12px 40px rgba(0,0,0,.08);
}

#registerForm::before {
    content: "";
    display: block;
    width: 210px;
    height: 90px;
    margin: 0 auto 20px;
    background: url('/branding/shipfast-ny-brand-logo.png') center / contain no-repeat;
}

#registerForm .form-floating {
    width: 100% !important;
    position: relative !important;
    margin-bottom: 16px !important;
}

#registerForm .form-floating > input.form-control {
    width: 100% !important;
    height: 66px !important;
    padding: 28px 14px 8px !important;
    font-size: 16px !important;
    border-radius: 8px !important;
}

#registerForm .form-floating > label {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    padding: 6px 14px !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    color: #30343b !important;
    transform: none !important;
    pointer-events: none !important;
}

#registerForm input::placeholder {
    color: transparent !important;
}

#registerForm button[type="submit"] {
    background: #f47721 !important;
    border-color: #f47721 !important;
    color: white !important;
    border-radius: 8px !important;
}

/* Ship Fast NY — Registration Input Text Fix */

#registerForm .form-floating {
    display: flex !important;
    flex-direction: column !important;
    height: auto !important;
}

#registerForm .form-floating > label {
    position: static !important;
    order: -1 !important;
    display: block !important;
    width: 100% !important;
    height: auto !important;
    padding: 0 0 8px !important;
    margin: 0 !important;
    font-size: 15px !important;
    line-height: 1.5 !important;
    transform: none !important;
}

#registerForm .form-floating > label::after {
    display: none !important;
}

#registerForm .form-floating > input.form-control {
    height: 50px !important;
    min-height: 50px !important;
    padding: 12px 14px !important;
    font-size: 16px !important;
    line-height: 24px !important;
}
