/* //====// GLOBAL STYLES //====//
Type: CSS
Feature: Core
Group: global-styles
Description: Root variables, viewport lock, app shell layout, typography helpers, and shared button styling.
*/

:root {
    --swb-primary: #484E37;
    --swb-secondary: #703E58;
    --swb-highlight: #A65424;
    --swb-bg: #D9C5B2;
    --swb-text: #45362E;
    --swb-espresso: #3D2B23;
    --swb-border: #C4AF9A;
}

[x-cloak] {
    display: none !important;
}

html,
body {
    height: 100%;
}

html {
    background-color: #A65424;
    overflow: hidden;
}

body {
    background-color:  #A65424 !important;
    color: var(--swb-text);
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    min-height: 100dvh;
    overflow: hidden;
    -webkit-font-smoothing: antialiased;
}

body.swb-app-shell {
    display: flex;
    justify-content: center;
}
#swb-app-shell {
    height: 100vh;
    height: 100dvh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #D9C5B2;
    position: relative;
}
#swb-app-shell,
#swb-app-view {
    width: 100%;
    height: 100vh;
    height: 100dvh;
    display: flex;
    justify-content: center;
    overflow: hidden;
	   flex-direction: column;
}

.swb-app-canvas {
    width: 100%;
    max-width: 430px;
    height: 100vh;
    height: 100dvh;
    position: relative;
    background: var(--swb-bg);
    overflow: hidden;
}

.swb-app-canvas::before {
    content: "";
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.7' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.10'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 1;
}

.font-serif {
    font-family: 'Cormorant Garamond', serif;
}

.swb-btn {
    width: 100%;
    min-height: 3.8rem;
    border-radius: 999px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.11em;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: none;
    box-sizing: border-box;
    transition: transform 0.18s ease, opacity 0.18s ease, box-shadow 0.22s ease;
}

.swb-btn:active {
    transform: scale(0.98);
}

.swb-btn-primary {
    background: var(--swb-primary);
    color: #fff;
    box-shadow: 0 10px 25px rgba(72, 78, 55, 0.18);
}

.swb-btn-secondary {
    background: transparent;
    color: var(--swb-secondary);
    border: 2px solid var(--swb-secondary);
}

/* //====// END GLOBAL STYLES //====// */


/* //====// AUTH SHELL LAYOUT //====//
Type: CSS
Feature: Auth
Group: auth-layout
Description: Splash, shell, viewport-safe scrolling, header sizing, and main auth layout.
*/

#swb-auth-view {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.swb-auth-splash {
    position: fixed;
    inset: 0;
    z-index: 90;
    background: var(--swb-bg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.swb-auth-splash-logo {
    width: 78px;
    height: auto;
}

.swb-auth-loader {
    width: 5rem;
    height: 0.28rem;
    border-radius: 999px;
    background: rgba(166, 84, 36, 0.22);
    overflow: hidden;
}

.swb-auth-loader-bar {
    width: 100%;
    height: 100%;
    background: var(--swb-highlight);
    animation: swbLoad 2.4s linear;
}

.swb-auth-shell {
    position: relative;
    z-index: 10;
    height: 100%;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    padding: 1.35rem 1.25rem 0.65rem;
}

.swb-auth-header {
    width: 100%;
    text-align: center;
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
    transition: transform 0.34s ease, opacity 0.24s ease;
}

.swb-auth-shell[data-view="login_email"] .swb-auth-header,
.swb-auth-shell[data-view="login_pin"] .swb-auth-header,
.swb-auth-shell[data-view="reset_pin"] .swb-auth-header,
.swb-auth-shell[data-view="join_email"] .swb-auth-header,
.swb-auth-shell[data-view="join_pin"] .swb-auth-header,
.swb-auth-shell[data-view="join_profile"] .swb-auth-header {
    transform: translateY(-10px) scale(0.9);
}

.swb-auth-header-logo {
    width: 58px;
    height: auto;
    margin: 0 auto 0.9rem;
}

.swb-auth-logo {
    margin: 0;
    font-size: 3.1rem;
    line-height: 0.84;
    font-weight: 800;
    font-style: italic;
    color: var(--swb-espresso);
    letter-spacing: -0.04em;
    text-align: center;
}

.swb-auth-logo span {
    color: var(--swb-highlight);
}

.swb-auth-tagline {
    margin-top: 0.28rem;
    font-size: 0.64rem;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    opacity: 0.42;
    color: var(--swb-espresso);
    white-space: nowrap;
}

.swb-auth-main {
    width: 100%;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    position: relative;
    z-index: 2;
    padding-top: 0.35rem;
    padding-bottom: 0.25rem;
}

.swb-auth-panel {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.95rem;
    position: relative;
    z-index: 2;
}

.swb-auth-panel-landing {
    gap: 1.65rem;
    padding-top: 0.4rem;
}

@media (min-width: 768px) {
    .swb-auth-shell {
        padding-top: 1.75rem;
        padding-bottom: 0.7rem;
    }

    .swb-auth-header {
        margin-bottom: 1.2rem;
    }

    .swb-auth-main {
        justify-content: center;
        padding-top: 0;
    }
}
/* //====// END AUTH SHELL LAYOUT //====// */


/* //====// AUTH WATERMARKS //====//
Type: CSS
Feature: Auth
Group: auth-watermarks
Description: Background watermark letters and color variants for landing, login, and join states.
*/

.swb-auth-watermark {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 0;
}

.swb-auth-watermark-letter {
    font-size: clamp(24rem, 95vw, 40rem);
    line-height: 1;
    font-weight: 800;
    font-style: italic;
    opacity: 0.06;
    transform: translateY(-4%);
    user-select: none;
}

.swb-auth-watermark-s {
    color: var(--swb-primary);
}

.swb-auth-watermark-w {
    color: var(--swb-highlight);
}

.swb-auth-watermark-b {
    color: var(--swb-secondary);
}
/* //====// END AUTH WATERMARKS //====// */


/* //====// AUTH QUOTES //====//
Type: CSS
Feature: Auth
Group: auth-quotes
Description: Quote layout for landing and inner screens.
*/

.swb-auth-quote-wrap {
    padding: 0 0.45rem;
}

.swb-auth-quote-wrap-small {
    padding: 0 0.25rem;
    margin-bottom: 0.2rem;
}

.swb-auth-quote {
    margin: 0;
    text-align: center;
    color: var(--swb-espresso);
    font-size: 1.82rem;
    line-height: 1.14;
    font-weight: 700;
    font-style: italic;
}

.swb-auth-quote-small {
    font-size: 1.25rem;
    line-height: 1.2;
}
/* //====// END AUTH QUOTES //====// */


/* //====// AUTH FORMS //====//
Type: CSS
Feature: Auth
Group: auth-forms
Description: Shared form card, field labels, text inputs, textarea, errors, and helper links.
*/

.swb-auth-form-card {
    display: flex;
    flex-direction: column;
    gap: 0.95rem;
    padding-top: 0.15rem;
}

.swb-auth-form-title {
    margin: 0;
    text-align: center;
    font-size: 1.9rem;
    font-weight: 700;
    font-style: italic;
    color: var(--swb-espresso);
}

.swb-auth-field {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.swb-auth-field-label {
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--swb-highlight);
    opacity: 0.78;
    text-align: left;
    padding-left: 0.35rem;
}

.swb-auth-input {
    width: 100%;
    box-sizing: border-box;
    outline: none;
    font-family: 'Montserrat', sans-serif;
    color: var(--swb-espresso);
}

.swb-auth-input-pill {
    height: 3.35rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.34);
    border: 2px solid var(--swb-border);
    padding: 0 1.25rem;
    font-size: 1rem;
    font-weight: 700;
}

.swb-auth-textarea {
    min-height: 6.4rem;
    border-radius: 1.3rem;
    border: 2px solid var(--swb-border);
    background: rgba(255, 255, 255, 0.34);
    padding: 0.9rem 1rem;
    font-size: 1rem;
    font-family: 'Montserrat', sans-serif;
    color: var(--swb-espresso);
    resize: vertical;
    outline: none;
    box-sizing: border-box;
}

.swb-auth-input-pill:focus,
.swb-auth-pin:focus,
.swb-auth-textarea:focus {
    border-color: var(--swb-primary);
    background: rgba(255, 255, 255, 0.86);
}

.swb-auth-error {
    background: rgba(166, 84, 36, 0.1);
    border: 1px solid rgba(166, 84, 36, 0.2);
    border-radius: 1rem;
    padding: 0.75rem 0.9rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: #8b3f17;
    text-align: center;
}

.swb-auth-link {
    background: none;
    border: none;
    color: var(--swb-secondary);
    font-size: 0.7rem;
    font-weight: 800;
    text-align: center;
    cursor: pointer;
    padding: 0;
    opacity: 0.85;
}

.swb-auth-link-back {
    margin-top: 0.2rem;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
/* //====// END AUTH FORMS //====// */


/* //====// AUTH PIN ROWS //====//
Type: CSS
Feature: Auth
Group: auth-pin
Description: Six digit PIN layout with middle divider and large accessible inputs.
*/

.swb-auth-pin-row {
    display: grid;
    grid-template-columns: repeat(3, 2.55rem) 1rem repeat(3, 2.55rem);
    justify-content: center;
    align-items: center;
    gap: 0.38rem;
}

.swb-auth-pin-divider {
    text-align: center;
    font-weight: 900;
    color: var(--swb-border);
    font-size: 1.15rem;
}

.swb-auth-pin {
    width: 100%;
    height: 3.7rem;
    text-align: center;
    font-size: 1.55rem;
    font-weight: 900;
    background: rgba(255, 255, 255, 0.4);
    border: 2px solid var(--swb-border);
    border-radius: 0.82rem;
    color: var(--swb-espresso);
    outline: none;
    transition: all 0.18s ease;
    box-sizing: border-box;
}
/* //====// END AUTH PIN ROWS //====// */


/* //====// AUTH PROFILE EXTRAS //====//
Type: CSS
Feature: Auth
Group: auth-profile
Description: Profile image upload placeholder styles for the sign up profile screen.
*/

.swb-auth-avatar-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.55rem;
}

.swb-auth-avatar {
    width: 6rem;
    height: 6rem;
    border-radius: 999px;
    border: 4px solid #fff;
    background: rgba(196, 175, 154, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 22px rgba(61, 43, 35, 0.08);
}

.swb-auth-avatar-icon {
    font-size: 1.8rem;
    font-weight: 900;
    color: #fff;
    line-height: 1;
}

.swb-auth-avatar-text {
    margin: 0;
    font-size: 0.5rem;
    font-weight: 900;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    opacity: 0.5;
}
/* //====// END AUTH PROFILE EXTRAS //====// */


/* //====// AUTH FOOTER //====//
Type: CSS
Feature: Auth
Group: auth-footer
Description: Footer spacing and text styling for the auth experience.
*/

.swb-auth-footer {
    margin-top: auto;
    padding: 0.72rem 0 0.2rem;
    text-align: center;
    position: relative;
    z-index: 2;
}

.swb-auth-footer p {
    margin: 0;
    font-size: 0.5rem;
    font-weight: 900;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    opacity: 0.3;
    color: var(--swb-espresso);
}

@media (min-width: 768px) {
    .swb-auth-footer {
        padding-top: 1rem;
    }
}
/* //====// END AUTH FOOTER //====// */


/* //====// AUTH ANIMATION //====//
Type: CSS
Feature: Auth
Group: auth-animation
Description: Shared loader animation for splash screen.
*/

@keyframes swbLoad {
    from { transform: translateX(-100%); }
    to { transform: translateX(0%); }
}
/* //====// END AUTH ANIMATION //====// */