/**
 * =============================================================================
 * STOCKBOXX LOGIN PAGE - STYLE CSS
 * =============================================================================
 * Style specyficzne dla strony /customer/account/login w motywie StockBoxx
 * Konwersja z projektu Loveable (React + Tailwind) na natywny CSS
 * =============================================================================
 */

/* Layout fix handled globally in stockboxx.css via .stockboxx-page class */

/* =============================================================================
   SECTION 1: HERO + LOGIN FORM
   ============================================================================= */
.sb-login-hero {
    position: relative;
    background-color: var(--sb-green-main);
    padding: 80px 0;
    overflow: hidden;
}

@media (max-width: 767px) {
    .sb-login-hero {
        padding: 48px 0 64px;
    }
}

/* Decorative circle */
.sb-login-hero__circle {
    position: absolute;
    right: -100px;
    top: 50%;
    transform: translateY(-50%);
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    pointer-events: none;
    z-index: 0;
}

/* Content layout */
.sb-login-hero__content {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 48px;
}

@media (min-width: 1024px) {
    .sb-login-hero__content {
        flex-direction: row;
        align-items: flex-start;
        gap: 32px;
    }
}

/* Left column */
.sb-login-hero__left {
    flex: 1;
    padding-top: 16px;
}

@media (min-width: 1024px) {
    .sb-login-hero__left {
        max-width: 45%;
    }
}

/* Breadcrumbs */
.sb-login-hero__breadcrumbs {
    font-size: 13px;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 24px;
}

.sb-login-hero__breadcrumbs a {
    color: rgba(255, 255, 255, 0.5) !important;
    text-decoration: none !important;
    transition: color var(--sb-transition);
}

.sb-login-hero__breadcrumbs a:hover {
    color: #FFFFFF !important;
}

.sb-login-hero__breadcrumb-sep {
    margin: 0 8px;
}

/* Subtitle with checkmark */
.sb-login-hero__subtitle {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    line-height: 1.4;
    font-weight: 500;
    color: var(--sb-orange);
    margin: 0 0 20px 0;
}

/* Check icon in subtitle */
.sb-login-hero__check-icon {
    width: 14px;
    height: 14px;
    stroke: var(--sb-orange);
    flex-shrink: 0;
}

/* Title */
.stockboxx-page .sb-login-hero__title {
    font-size: clamp(40px, 5vw, 64px);
    line-height: 1.05;
    letter-spacing: -1px;
    color: #FFFFFF !important;
    text-transform: uppercase;
    margin: 0 0 24px 0;
}

.sb-login-hero__title .sb-text-orange {
    color: var(--sb-orange) !important;
}

/* Description */
.sb-login-hero__desc {
    font-size: 17px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.7);
    max-width: 420px;
    margin: 0 0 36px 0;
}

/* Benefits list */
.sb-login-hero__benefits {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 0 24px 0 !important;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.sb-login-hero__benefits li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 !important;
    margin: 0 !important;
}

/* Benefits list - checkmark icon */
.sb-login-hero__benefits li svg {
    width: 18px;
    height: 18px;
    stroke: var(--sb-orange);
    flex-shrink: 0;
}

.sb-login-hero__benefits span,
.sb-login-hero__benefits li {
    font-size: 15px;
    line-height: 1.4;
    font-weight: 500;
    color: #FFFFFF;
}

/* Register link */
.sb-login-hero__register-link {
    display: inline-block;
    font-size: 14px;
    line-height: 1.43; /* text-sm */
    font-weight: 600;
    color: var(--sb-orange) !important;
    text-decoration: none !important;
    margin-top: 24px;
    transition: text-decoration var(--sb-transition);
}

.sb-login-hero__register-link:hover {
    text-decoration: underline !important;
}

/* Right column */
.sb-login-hero__right {
    display: flex;
    justify-content: center;
}

@media (min-width: 1024px) {
    .sb-login-hero__right {
        flex: 1;
        justify-content: flex-end;
        max-width: 55%;
    }
}

/* =============================================================================
   LOGIN CARD
   ============================================================================= */
.sb-login-card {
    background-color: #FFFFFF;
    border-radius: 16px;
    padding: 24px;
    width: 100%;
    max-width: 520px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.25);
    animation: sb-fade-in 0.4s ease;
}

@media (min-width: 640px) {
    .sb-login-card {
        padding: 40px;
    }
}

.sb-login-card__title {
    font-size: 24px;
    line-height: 1.33; /* text-2xl */
    font-weight: 700;
    color: var(--sb-green-main) !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    margin: 0 0 8px 0 !important;
}

.sb-login-card__subtitle {
    font-size: 13px;
    line-height: 1.4;
    color: #888888;
    margin: 0 0 32px 0;
}

/* =============================================================================
   LOGIN FORM
   ============================================================================= */
.sb-login-form__fields {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 16px;
}

.sb-login-form__field {
    display: flex;
    flex-direction: column;
}

.sb-login-form__label {
    display: block;
    font-size: 14px;
    line-height: 1.43; /* text-sm */
    font-weight: 500;
    color: #333333;
    margin-bottom: 6px;
}

.sb-login-form__required {
    color: #e02b27;
    margin-left: 2px;
}

/* Input styles */
.sb-login-form__input {
    width: 100%;
    height: 44px;
    padding: 10px 14px;
    font-family: var(--sb-font-family);
    font-size: 14px;
    color: var(--sb-card-foreground);
    background-color: #FCFAF8;
    border: 1px solid var(--sb-gray-light);
    border-radius: 10px;
    transition: border-color var(--sb-transition), box-shadow var(--sb-transition);
}

.sb-login-form__input::placeholder {
    color: #BBBBBB;
}

.sb-login-form__input:focus {
    outline: none;
    border-color: var(--sb-orange);
    box-shadow: 0 0 0 3px rgba(240, 102, 10, 0.12);
}

/* Password wrapper with toggle */
.sb-login-form__password-wrapper {
    position: relative;
}

.sb-login-form__input--password {
    padding-right: 44px;
}

.sb-login-form__toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    background: none !important;
    border: none !important;
    cursor: pointer;
    color: #AAAAAA;
    transition: color var(--sb-transition);
}

.sb-login-form__toggle-password:hover {
    color: var(--sb-green-main);
    background: none !important;
}

.sb-login-form__eye-icon {
    display: block;
}

/* Forgot password */
.sb-login-form__forgot {
    text-align: right;
    margin-bottom: 20px;
    margin-top: -8px;
}

.sb-login-form__forgot-link {
    font-size: 13px;
    line-height: 1.4;
    color: var(--sb-orange) !important;
    text-decoration: none !important;
    transition: text-decoration var(--sb-transition);
}

.sb-login-form__forgot-link:hover {
    text-decoration: underline !important;
}

/* Submit button */
.sb-login-form__submit {
    border-radius: 10px !important;
}

/* Separator */
.sb-login-form__separator {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 24px 0;
}

.sb-login-form__separator::before,
.sb-login-form__separator::after {
    content: '';
    flex: 1;
    height: 1px;
    background-color: var(--sb-gray-light);
}

.sb-login-form__separator span {
    font-size: 12px;
    line-height: 1.33; /* text-xs */
    color: #AAAAAA;
}

/* Create account button */
.sb-login-form__create-btn {
    border-radius: 10px !important;
}

/* Validation error styles */
.sb-login-form__input.mage-error {
    border-color: #e02b27 !important;
}

.sb-login-form .mage-error[generated] {
    font-size: 12px;
    color: #e02b27;
    margin-top: 4px;
}

/* =============================================================================
   SECTION 2: BENEFITS
   ============================================================================= */
.sb-login-benefits {
    background-color: var(--sb-off-white);
    padding: 80px 0;
}

@media (max-width: 767px) {
    .sb-login-benefits {
        padding: 48px 0 64px;
    }
}

/* Header */
.sb-login-benefits__header {
    text-align: center;
    margin-bottom: 48px;
}

.stockboxx-page .sb-login-benefits__title {
    font-size: clamp(32px, 4vw, 44px);
    text-transform: uppercase;
    margin-bottom: 12px;
}

.sb-login-benefits__subtitle {
    font-size: 16px;
    line-height: 1.5; /* text-base */
    color: #888888;
    max-width: 600px;
    margin: 0 auto;
}

/* Cards grid */
.sb-login-benefits__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

@media (min-width: 640px) {
    .sb-login-benefits__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .sb-login-benefits__grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Card */
.sb-login-benefits__card {
    background-color: #FFFFFF;
    border-radius: 16px;
    padding: 28px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: box-shadow var(--sb-transition), transform var(--sb-transition);
}

.sb-login-benefits__card:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

/* Icon */
.sb-login-benefits__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    color: var(--sb-orange);
}

/* Card title */
.sb-login-benefits__card-title {
    font-size: 16px;
    line-height: 1.5; /* text-base */
    font-weight: 700;
    color: var(--sb-green-main);
    text-transform: uppercase;
    letter-spacing: normal !important;
    margin: 0 0 8px 0 !important;
}

/* Card description */
.sb-login-benefits__card-desc {
    font-size: 14px;
    color: #666666;
    line-height: 1.6;
    margin: 0;
}

/* =============================================================================
   SECTION 3: PROCESS
   ============================================================================= */
.sb-login-process {
    background-color: #FFFFFF;
    padding: 80px 0;
}

@media (max-width: 767px) {
    .sb-login-process {
        padding: 48px 0 64px;
    }
}

/* Header */
.sb-login-process__header {
    text-align: center;
    margin-bottom: 48px;
}

.stockboxx-page .sb-login-process__title {
    font-size: clamp(32px, 4vw, 44px);
    text-transform: uppercase;
    margin-bottom: 12px;
}

.sb-login-process__subtitle {
    font-size: 16px;
    line-height: 1.5; /* text-base */
    color: #888888;
}

/* Steps grid */
.sb-login-process__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    max-width: 900px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .sb-login-process__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Step */
.sb-login-process__step {
    background-color: #FAFAFA;
    border-radius: 16px;
    padding: 32px;
    text-align: center;
}

/* Number badge */
.sb-login-process__num {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: var(--sb-orange);
    color: #FFFFFF;
    font-family: var(--sb-font-family);
    font-size: 20px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

/* Step title */
.sb-login-process__step-title {
    font-size: 16px;
    line-height: 1.5; /* text-base */
    font-weight: 700;
    color: var(--sb-green-main);
    text-transform: uppercase;
    letter-spacing: normal !important;
    margin: 0 0 8px 0 !important;
}

/* Step description */
.sb-login-process__step-desc {
    font-size: 14px;
    color: #666666;
    line-height: 1.6;
    margin: 0;
}

/* =============================================================================
   SECTION 4: FINAL CTA
   ============================================================================= */
.sb-login-cta {
    position: relative;
    background-color: var(--sb-green-main);
    padding: 80px 0;
    overflow: hidden;
}

@media (max-width: 767px) {
    .sb-login-cta {
        padding: 48px 0 64px;
    }
}

/* Inner content */
.sb-login-cta__inner {
    position: relative;
    z-index: 10;
    text-align: center;
}

/* Title */
.stockboxx-page .sb-login-cta__title {
    font-size: clamp(32px, 4vw, 44px);
    color: #FFFFFF !important;
    text-transform: uppercase;
    margin-bottom: 16px;
}

/* Description */
.sb-login-cta__desc {
    font-size: 16px;
    line-height: 1.5; /* text-base */
    color: rgba(255, 255, 255, 0.7);
    max-width: 500px;
    margin: 0 auto 32px;
}

@media (max-width: 767px) {
    .sb-login-cta__desc {
        font-size: 15px;
    }
}

/* Buttons */
.sb-login-cta__buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

@media (min-width: 640px) {
    .sb-login-cta__buttons {
        flex-direction: row;
        justify-content: center;
    }
}

/* Note */
.sb-login-cta__note {
    font-size: 13px;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 16px;
}

/* =============================================================================
   UTILITY CLASS
   ============================================================================= */
.sb-text-orange {
    color: var(--sb-orange) !important;
}

/* =============================================================================
   ANIMATION
   ============================================================================= */
@keyframes sb-fade-in {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
