/* ==========================================================================
   auth-breeze.css - layouts/guest.blade.php (Sign Up, Sign In, Forgot Password,
   Reset Password, Account Verification / OTP, Order Summary shell).
   Figma: Sign Up 438:5539 / 438:5693, Sign In 438:6163 / 438:6275,
   Forgot 443:7564 / 443:7676, Verification 446:8548 / 446:8633.
   ========================================================================== */

.auth-breeze-body {
    margin: 0;
    min-height: 100vh;
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: #071A31;
    background: #F3F6FA;
    overflow-x: hidden;
}

/* The two soft blurred circles behind the page (Figma "Ellipse 703/704"). */
.auth-breeze-shell {
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

.auth-breeze-shell::before,
.auth-breeze-shell::after {
    content: "";
    position: absolute;
    width: 363px;
    height: 363px;
    border-radius: 50%;
    opacity: 0.8;
    filter: blur(280px);
    pointer-events: none;
    z-index: 0;
}

.auth-breeze-shell::before {
    background: #8D6AE3;
    top: 27px;
    left: calc(50% - 563px);
}

.auth-breeze-shell::after {
    background: #B3D840;
    top: 490px;
    left: calc(50% + 210px);
}

/* Navbar comes from include/navbar + common.css; on these light pages it
   gets the Figma shadow and (desktop) no menu links. */
.auth-breeze-shell .navbar {
    box-shadow: 0 7px 29px rgba(100, 100, 111, 0.16);
}

@media (min-width: 992px) {
    .auth-breeze-shell .navbar-nav {
        visibility: hidden;
    }
}

.auth-breeze-main {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 200px 20px 80px;
}

.auth-page-register .auth-breeze-main {
    padding-top: 176px;
}

/* ---------- Card ---------- */
.auth-breeze-card {
    width: 100%;
    max-width: 520px;
    background: #FFFFFF;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 7px 29px rgba(100, 100, 111, 0.16);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.auth-breeze-card form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.auth-card-head {
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: center;
}

.auth-card-title {
    font-size: 22px;
    font-weight: 700;
    line-height: normal;
    color: #071A31;
    margin: 0;
}

.auth-card-sub {
    font-size: 14px;
    font-weight: 500;
    line-height: normal;
    color: #455365;
    margin: 0;
}

/* ---------- Inputs ---------- */
.auth-fields {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.auth-input-wrap {
    position: relative;
}

.auth-input {
    display: block;
    width: 100%;
    height: 48px;
    border: 1px solid #D6DFEB;
    border-radius: 8px;
    padding: 0 20px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    color: #071A31;
    background: #FFFFFF;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.auth-input::placeholder {
    color: #455365;
    opacity: 1;
}

.auth-input:focus {
    border-color: #006BFF;
    box-shadow: 0 0 0 3px rgba(0, 107, 255, 0.12);
}

.auth-input.is-invalid {
    border-color: #FF2525;
}

.auth-input-password {
    padding-right: 52px;
}

.auth-eye-btn {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: 0;
    padding: 0;
    cursor: pointer;
    display: inline-flex;
    line-height: 0;
}

.auth-eye-btn img {
    width: 22px;
    height: 22px;
}

.auth-error-msg {
    display: block;
    color: #FF2525;
    font-size: 12px;
    font-weight: 500;
    margin-top: 5px;
}

.auth-status-alert {
    background: #ECFDF5;
    border: 1px solid #A7F3D0;
    color: #065F46;
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 13px;
}

/* ---------- Checkboxes ---------- */
.auth-checkbox {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    margin: 0;
    flex-shrink: 0;
    cursor: pointer;
    background: url("../images/auth-checkout/checkbox-off.svg") center / 20px 20px no-repeat;
}

.auth-checkbox:checked {
    background-image: url("../images/auth-checkout/checkbox-on.svg");
}

.auth-checkbox:focus-visible {
    outline: 2px solid rgba(0, 107, 255, 0.4);
    outline-offset: 2px;
    border-radius: 6px;
}

.auth-checks {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.auth-check-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    line-height: 20px;
    letter-spacing: -0.13px;
    color: #455365;
    cursor: pointer;
    margin: 0;
}

.auth-check-item a {
    color: #006BFF;
    font-weight: 600;
    text-decoration: none;
}

.auth-check-item a:hover {
    text-decoration: underline;
}

.auth-row-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.auth-remember-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 500;
    color: #455365;
    cursor: pointer;
    margin: 0;
}

.auth-forgot-link {
    font-size: 13px;
    font-weight: 600;
    color: #FF2525;
    text-decoration: underline;
    text-underline-position: from-font;
}

.auth-forgot-link:hover {
    color: #D91E1E;
}

/* ---------- Buttons ---------- */
.auth-submit-btn {
    width: 100%;
    height: 48px;
    border: 0;
    border-radius: 8px;
    background: #071A31;
    color: #FFFFFF;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    line-height: 18px;
    cursor: pointer;
    transition: background 0.15s ease;
}

.auth-submit-btn:hover {
    background: #13294E;
}

.auth-social {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 0;
    margin: 0;
    color: #455365;
    font-size: 13px;
    font-weight: 600;
}

.auth-divider span {
    width: 120px;
    flex-shrink: 0;
    text-align: center;
}

.auth-divider::before,
.auth-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #D6DFEB;
}

.auth-google-btn {
    width: 100%;
    height: 48px;
    border: 1px solid #D6DFEB;
    border-radius: 8px;
    background: #FFFFFF;
    color: #071A31;
    font-size: 13px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
    transition: background 0.15s ease;
}

.auth-google-btn img {
    width: 21.56px;
    height: 22px;
}

.auth-google-btn:hover {
    background: #F8FAFC;
    color: #071A31;
}

.auth-footer-note {
    margin: 0;
    text-align: center;
    font-size: 14px;
    font-weight: 500;
    line-height: 18px;
    color: #455365;
}

.auth-footer-note a {
    color: #006BFF;
    font-weight: 600;
    text-decoration: underline;
    text-underline-position: from-font;
}

.auth-page-login .auth-footer-note a {
    color: #5F4DFF;
    font-weight: 500;
}

/* ---------- OTP (Account Verification) ---------- */
.auth-page-verify .auth-breeze-card {
    max-width: 460px;
}

.auth-otp-group {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.auth-otp-input {
    width: 56px;
    height: 60px;
    border: 1px solid #D6DFEB;
    border-radius: 8px;
    background: #FFFFFF;
    text-align: center;
    font-family: 'Inter', sans-serif;
    font-size: 32px;
    font-weight: 500;
    line-height: 40px;
    color: #006BFF;
    outline: none;
    padding: 0;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.auth-otp-input:focus {
    border-color: #006BFF;
    box-shadow: 0 0 0 3px rgba(0, 107, 255, 0.12);
}

.auth-otp-input.is-invalid {
    border-color: #FF2525;
}

.auth-verify-note {
    margin: 0;
    text-align: center;
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
    color: #43404E;
}

.auth-resend-link {
    background: none;
    border: 0;
    padding: 0;
    color: #006BFF;
    font-weight: 600;
    text-decoration: underline;
    text-underline-position: from-font;
    cursor: pointer;
    font-size: inherit;
    line-height: inherit;
    font-family: inherit;
}

.auth-resend-link:hover {
    color: #0057D1;
}

/* Forgot password: the input and the button sit 10px apart. */
.auth-page-forgot .auth-breeze-card form {
    gap: 10px;
}

/* ---------- Captcha (Turnstile) ---------- */
.auth-captcha {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 65px;
}

/* ---------- Bigger tap areas (L8) ----------
   Padding + equal negative margin grows the clickable box to ~40px
   without moving anything on screen. */
.auth-eye-btn {
    padding: 10px;
    margin-right: -10px;
}

.auth-check-item,
.auth-remember-label,
.auth-forgot-link {
    padding-top: 10px;
    padding-bottom: 10px;
    margin-top: -10px;
    margin-bottom: -10px;
}

.auth-footer-note a,
.auth-resend-link {
    padding-top: 12px;
    padding-bottom: 12px;
}

.auth-resend-link {
    margin-top: -12px;
    margin-bottom: -12px;
}

/* ---------- Tablet ---------- */
@media (max-width: 991px) {
    .auth-breeze-main {
        padding-top: 150px;
    }

    .auth-page-register .auth-breeze-main {
        padding-top: 140px;
    }
}

/* ---------- Mobile (Figma 320 frames) ---------- */
@media (max-width: 767px) {
    .auth-breeze-shell::before {
        top: 32px;
        left: -245px;
    }

    .auth-breeze-shell::after {
        top: 409px;
        left: 210px;
    }

    .auth-breeze-main,
    .auth-page-register .auth-breeze-main {
        padding: 138px 15px 60px;
    }

    .auth-page-register .auth-breeze-main {
        padding-top: 118px;
    }

    .auth-breeze-card {
        padding: 20px 15px;
        gap: 15px;
    }

    .auth-breeze-card form {
        gap: 15px;
    }

    .auth-card-head {
        gap: 8px;
    }

    .auth-card-title {
        font-size: 16px;
    }

    .auth-card-sub {
        font-size: 11px;
    }

    .auth-fields {
        gap: 10px;
    }

    .auth-input {
        height: 40px;
        padding: 0 15px;
        font-size: 11px;
    }

    .auth-input-password {
        padding-right: 45px;
    }

    .auth-eye-btn {
        right: 15px;
    }

    .auth-eye-btn img {
        width: 20px;
        height: 20px;
    }

    .auth-checks {
        gap: 10px;
    }

    .auth-check-item {
        gap: 6px;
        font-size: 10px;
        font-weight: 500;
        line-height: 14px;
        letter-spacing: 0;
    }

    .auth-checks > div:first-child .auth-check-item {
        align-items: center;
    }

    .auth-remember-label {
        gap: 6px;
        font-size: 10px;
    }

    .auth-forgot-link {
        font-size: 10px;
        line-height: 14px;
    }

    .auth-submit-btn {
        height: 40px;
        font-size: 11px;
        line-height: normal;
    }

    .auth-social {
        gap: 15px;
    }

    .auth-divider {
        font-size: 10px;
        line-height: 14px;
    }

    .auth-divider span {
        width: 90px;
    }

    .auth-google-btn {
        height: 40px;
        gap: 8px;
        font-size: 11px;
    }

    .auth-google-btn img {
        width: 19.6px;
        height: 20px;
    }

    .auth-footer-note,
    .auth-page-login .auth-footer-note {
        font-size: 11px;
    }

    .auth-page-login .auth-footer-note a {
        color: #006BFF;
        font-weight: 600;
    }

    .auth-error-msg {
        font-size: 10px;
    }

    .auth-check-item,
    .auth-remember-label,
    .auth-forgot-link {
        padding-top: 13px;
        padding-bottom: 13px;
        margin-top: -13px;
        margin-bottom: -13px;
    }

    .auth-footer-note a,
    .auth-resend-link {
        padding-top: 13px;
        padding-bottom: 13px;
    }

    .auth-resend-link {
        margin-top: -13px;
        margin-bottom: -13px;
    }

    /* Verification */
    .auth-page-verify .auth-breeze-card {
        padding: 15px;
    }

    .auth-page-verify .auth-card-head {
        gap: 10px;
    }

    .auth-page-verify .auth-card-sub {
        padding: 0 5px;
    }

    .auth-otp-input {
        width: 48px;
        height: 52px;
        font-size: 26px;
        line-height: 32px;
    }

    .auth-verify-note {
        font-size: 11px;
        line-height: 16px;
    }

    .auth-page-forgot .auth-breeze-card {
        gap: 20px;
    }

    .auth-page-forgot .auth-breeze-card form {
        gap: 10px;
    }
}

/* ---------- Password rule hint (R2-32) ---------- */
.auth-hint {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    font-weight: 500;
    color: #6B7A8C;
}

/* ---------- Tap targets (R2-41) ----------
   The checkbox box and the inline policy links get a ~40px clickable area;
   negative margins / inline padding keep everything where it was. */
.auth-checkbox {
    width: 40px;
    height: 40px;
    margin: -10px;
}

.auth-checkbox:focus-visible {
    outline-offset: -10px;
}

.auth-check-item a {
    padding: 13px 0;
}

@media (max-width: 991px) {
    .auth-hint {
        font-size: 10px;
    }

    .auth-check-item a {
        padding: 14px 0;
    }
}
