/* Soft Minimalism Login Form - Complete & Self-Contained */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Inter', system-ui, sans-serif;
    background: linear-gradient(135deg, #faf9f6 0%, #f5f3f0 50%, #f0ede8 100%);
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    line-height: 1.5;
    position: relative;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;

    --drawer-gap: 20px;
    --drawer-tabs-reserve: 0px;
    --login-card-width: 420px;
    --login-shift-x: 0px;
    --login-scale: 1;
    --layout-cap-x: 0px;

    /* Login title ("Witaj ponownie") customization */
    --login-title-size: 26px;
    --login-title-weight: 500;
}

/* Soft Background */
.soft-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.login-container {
    width: 100%;
    max-width: 420px;
    position: relative;
    z-index: 1;
    transition: transform 0.35s ease;
    transform: translateX(0) scale(var(--login-scale));
    will-change: transform;
}

body.drawer-open .login-container {
    transform: translateX(var(--login-shift-x)) scale(var(--login-scale));
}

.soft-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    border-radius: 32px;
    padding: 48px 40px;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.41),
        0 8px 24px rgba(0, 0, 0, 0.02),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.4);
    position: relative;
    overflow: hidden;
}

.soft-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(240, 206, 170, 0.5), transparent);
}

.comfort-header {
    text-align: center;
    margin-bottom: 40px;
}

.gentle-logo {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gentle-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.logo-circle {
    position: relative;
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #f0ceaa, #e0be9c);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 
        0 8px 16px rgba(240, 206, 170, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.comfort-icon {
    color: rgba(139, 102, 85, 0.8);
    position: relative;
    z-index: 2;
}

.gentle-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(240, 206, 170, 0.3) 0%, transparent 70%);
    border-radius: 50%;
}

.comfort-title {
    font-family: 'Montserrat';
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #000000;
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 8px;
}

.comfort-title.comfort-title--montserrat {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Inter', system-ui, sans-serif;
    text-transform: uppercase;
    font-size: var(--login-title-size);
    font-weight: var(--login-title-weight);
    letter-spacing: 3px;
}

.gentle-subtitle {
    color: rgb(0, 0, 0);
    font-size: 13px;
    font-weight: 400;
    text-transform: uppercase;
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Inter', system-ui, sans-serif;
    letter-spacing: 2px;
}

/* Soft Form Fields */
.soft-field {
    position: relative;
    margin-bottom: 24px;
}

.field-container {
    position: relative;
    background: rgba(255, 255, 255, 0.7);
    border: 1.5px solid rgba(240, 206, 170, 0.3);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.field-container:focus-within {
    border-color: #f0ceaa;
    box-shadow: 0 0 0 3px rgba(240, 206, 170, 0.1);
    background: rgba(255, 255, 255, 0.9);
}

.soft-field input {
    width: 100%;
    background: transparent;
    border: none;
    padding: 18px 16px;
    color: #b74c09;
    font-size: 15px;
    font-weight: 400;
    outline: none;
    position: relative;
    z-index: 2;
    font-family: inherit;
}

.soft-field input::placeholder {
    color: transparent;
}

.soft-field label {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: b74c09;
    font-size: 15px;
    font-weight: 400;
    pointer-events: none;
    transition: all 0.3s ease;
    z-index: 3;
}

.soft-field input:focus + label,
.soft-field input:not(:placeholder-shown) + label {
    top: 2px;
    font-size: 10px;
    color: b74c09;
    transform: translateY(0);
    font-weight: 500;
}

/* Selects don't have :placeholder-shown; keep their labels floated to avoid overlap. */
.soft-field:has(select) label {
    top: 2px;
    font-size: 10px;
    color: #b74c09;
    transform: translateY(0);
    font-weight: 500;
}

/* Align native <select> with panel input styling. */
.field-container select {
    width: 100%;
    background: transparent;
    border: 0;
    outline: none;
    font: inherit;
    color: inherit;
    padding: 18px 16px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.field-accent {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #b74c09, #b74c09);
    transition: width 0.3s ease;
    border-radius: 2px;
}

.field-container:focus-within .field-accent {
    width: 100%;
}

/* Password Toggle */
.soft-field:has(.gentle-toggle) input {
    padding-right: 56px;
}

.gentle-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    z-index: 4;
    padding: 8px;
    border-radius: 12px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
}

.toggle-icon {
    width: 20px;
    height: 20px;
    color: rgba(139, 102, 85, 0.6);
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toggle-icon svg {
    display: block;
}

.gentle-toggle:hover {
    background: rgba(240, 206, 170, 0.1);
}

.gentle-toggle:hover .toggle-icon {
    color: #8b6655;
}

/* Ensure exactly one eye icon is visible at a time. */
.gentle-toggle .toggle-icon .eye-open,
.gentle-toggle .toggle-icon .eye-closed {
    display: none;
}

.gentle-toggle .toggle-icon .eye-open {
    display: block;
}

.gentle-toggle.toggle-active .toggle-icon .eye-open {
    display: none;
}

.gentle-toggle.toggle-active .toggle-icon .eye-closed {
    display: block;
}

/* Comfort Options */
.comfort-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    flex-wrap: wrap;
    gap: 16px;
}

.gentle-checkbox {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    color: #8b6655;
    font-weight: 400;
}

.gentle-checkbox input[type="checkbox"] {
    display: none;
}

.checkbox-soft {
    width: 20px;
    height: 20px;
    margin-right: 12px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.check-circle {
    width: 100%;
    height: 100%;
    border: 1.5px solid rgba(240, 206, 170, 0.4);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
    position: absolute;
}

.check-mark {
    color: transparent;
    transition: color 0.3s ease;
    position: relative;
    z-index: 1;
}

.gentle-checkbox input[type="checkbox"]:checked + .checkbox-soft .check-circle {
    background: linear-gradient(135deg, #f0ceaa, #e0be9c);
    border-color: #f0ceaa;
    box-shadow: 0 2px 4px rgba(240, 206, 170, 0.3);
}

.gentle-checkbox input[type="checkbox"]:checked + .checkbox-soft .check-mark {
    color: #8b6655;
}

.comfort-link {
    color: #b74c09;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    position: relative;
}

.comfort-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: #c19a82;
    transition: width 0.3s ease;
}

.comfort-link:hover::after {
    width: 100%;
}

.comfort-link:hover {
    color: #8b6655;
}

/* Comfort Button */
.comfort-button {
    width: 100%;
    background: transparent;
    color: #ffffff;
    border: none;
    border-radius: 16px;
    padding: 0;
    cursor: pointer;
    font-family: Montserrat;
    font-size: 15px;
    font-weight: 500;
    position: relative;
    margin-bottom: 32px;
    overflow: hidden;
    min-height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;

}

.button-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;

        background: linear-gradient(135deg, #ffde59b0 0%, #ff914d 100%);
    transition: all 0.3s ease;
    border-radius: 16px;
}

.comfort-button:hover {
    transform: translateY(-1px);
}

.comfort-button:hover .button-background {
    background: linear-gradient(135deg, #ffde59b0 0%, #ff914dc2 100%);
    box-shadow: 0 8px 16px rgba(240, 206, 170, 0.4);
}

.comfort-button:active {
    transform: translateY(0);
}

.button-text {
    position: relative;
    z-index: 2;
    transition: opacity 0.3s ease;
}

.button-loader {
    position: absolute;
    z-index: 2;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gentle-spinner {
    width: 20px;
    height: 20px;
    position: relative;
}

.spinner-circle {
    width: 100%;
    height: 100%;
    border: 2px solid rgba(139, 102, 85, 0.2);
    border-top: 2px solid #8b6655;
    border-radius: 50%;
    animation: gentleSpin 1s linear infinite;
}

@keyframes gentleSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.comfort-button.loading .button-text {
    opacity: 0;
}

.comfort-button.loading .button-loader {
    opacity: 1;
}

.button-glow {
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, #f0ceaa, #e0be9c);
    border-radius: 18px;
    opacity: 0;
    filter: blur(8px);
    transition: opacity 0.3s ease;
    z-index: -1;
}

.comfort-button:hover .button-glow {
    opacity: 0.4;
}

/* Gentle Divider */
.gentle-divider {
    display: flex;
    align-items: center;
    margin: 32px 0;
    gap: 16px;
}

.divider-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(240, 206, 170, 0.4), transparent);
}

.divider-text {
    color: rgba(139, 102, 85, 0.6);
    font-size: 13px;
    font-weight: 400;
}

/* Comfort Social */
.comfort-social {
    display: flex;
    gap: 12px;
    margin-bottom: 32px;
}

.social-soft {
    flex: 1;
    background: transparent;
    color: #8b6655;
    border: 1.5px solid rgba(240, 206, 170, 0.3);
    border-radius: 12px;
    padding: 0;
    cursor: pointer;
    font-family: inherit;
    font-size: 14px;
    font-weight: 400;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
    min-height: 48px;
    position: relative;
    overflow: hidden;
}

.social-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
}

.social-soft:hover {
    border-color: #f0ceaa;
    transform: translateY(-1px);
}

.social-soft:hover .social-background {
    background: rgba(240, 206, 170, 0.1);
}

.social-soft span,
.social-soft svg {
    position: relative;
    z-index: 2;
}

.social-glow {
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    background: rgba(240, 206, 170, 0.3);
    border-radius: 13px;
    opacity: 0;
    filter: blur(6px);
    transition: opacity 0.3s ease;
    z-index: 0;
}

.social-soft:hover .social-glow {
    opacity: 1;
}

/* Comfort Signup */
.comfort-signup {
    text-align: center;
    font-size: 14px;
    color: rgba(139, 102, 85, 0.7);
}

.signup-text {
    margin-right: 6px;
}

.signup-link {
    font-weight: 500;
}

/* Gentle Error */
.gentle-error {
    color: #d97757;
    font-size: 13px;
    font-weight: 400;
    margin-top: 6px;
    opacity: 0;
    transform: translateY(-4px);
    transition: all 0.3s ease;
    position: relative;
    z-index: 5;
}

.gentle-error.show {
    opacity: 1;
    transform: translateY(0);
}

.soft-field.error .field-container {
    border-color: #d97757;
    background: rgba(217, 119, 87, 0.05);
}

.soft-field.error label {
    color: #d97757;
}

/* Gentle Success */
.gentle-success {
    display: none;
    text-align: center;
    padding: 40px 20px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
}

.gentle-success.show {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.success-bloom {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bloom-rings {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.bloom-ring {
    position: absolute;
    border: 2px solid #ff914d;
    border-radius: 50%;
    animation: bloomExpand 1.2s ease-out forwards;
    opacity: 0;
}

.ring-1 {
    width: 60px;
    height: 60px;
    top: 20px;
    left: 20px;
    animation-delay: 0s;
}

.ring-2 {
    width: 80px;
    height: 80px;
    top: 10px;
    left: 10px;
    animation-delay: 0.2s;
}

.ring-3 {
    width: 100px;
    height: 100px;
    top: 0;
    left: 0;
    animation-delay: 0.4s;
}

@keyframes bloomExpand {
    0% { opacity: 0; transform: scale(0); }
    50% { opacity: 1; transform: scale(1.1); }
    100% { opacity: 0.6; transform: scale(1); }
}

.success-icon {
    position: relative;
    z-index: 2;
    color: #ff914d;
    animation: iconBloom 0.6s ease-out 0.6s forwards;
    opacity: 0;
}

@keyframes iconBloom {
    0% { opacity: 0; transform: scale(0); }
    100% { opacity: 1; transform: scale(1); }
}

.success-title {
    color: #000000;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 8px;
    letter-spacing: 1px;
    font-family: Montserrat, sans-serif;
    text-transform: uppercase;

}

.success-desc {
    color: rgb(0, 0, 0);
    font-size: 14px;
    font-weight: 400;
    font-family: Montserrat, sans-serif;
    text-transform: uppercase;
}

/* Auth Footer */
.auth-footer {
    margin-top: 28px;
    padding-top: 18px;
    border-top: 1px solid rgba(240, 206, 170, 0.35);
}

.auth-footer-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    font-size: 13px;
    color: rgba(139, 102, 85, 0.7);
}

.auth-footer-row .comfort-link {
    font-size: 13px;
}

/* Right-side drawer ("book tab") */
.auth-card-wrap {
    position: relative;
}

.auth-drawer-tab {
    position: fixed;
    top: 25vh;
    right: var(--layout-cap-x, 0px);
    transform: translateY(-50%);
    height: 44px;
    border: 0;
    cursor: pointer;
    border-radius: 16px 0 0 16px;
    background: #000000;
    color: rgb(255, 255, 255);
    box-shadow:
        0 12px 24px rgba(0, 0, 0, 0.03),
        0 6px 14px rgba(0, 0, 0, 0.02),
        inset 0 1px 0 rgba(255, 255, 255, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 14px;
    z-index: 30;
    transition: transform 0.25s ease, filter 0.25s ease;
    will-change: transform;
}

.auth-drawer-tab--second {
    top: calc(25vh + 56px);
}

.auth-drawer-tab:hover {
    filter: brightness(0.99);
    transform: translateY(-50%) scale(1.02);
}

.auth-drawer-tab:active {
    transform: translateY(-50%) scale(0.99);
}

.auth-drawer-tab span {
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 1px;
    font-family: Montserrat;
    text-transform: uppercase;
}

.auth-drawer-panel {
    position: fixed;
    top: var(--drawer-center-y, 50%);
    right: calc(var(--drawer-gap) + var(--drawer-tabs-reserve) + var(--layout-cap-x, 0px));
    left: calc(var(--login-card-right, 0px) + var(--drawer-gap));
    width: auto;
    height: var(--drawer-height, auto);
    transform: translate(120%, -50%);
    opacity: 0;
    pointer-events: none;
    z-index: 20;
    transition: transform 0.35s ease, opacity 0.35s ease;
    will-change: transform, opacity;
}

.auth-drawer-panel.open {
    transform: translate(0, -50%);
    opacity: 1;
    pointer-events: auto;
}

.auth-drawer-panel h2 {
    font-family: Montserrat, sans-serif;
    text-transform: uppercase;
    color: #b74c09;
    font-size: 1.3rem;
    font-weight: 550;
    letter-spacing: 1px;
    margin: 0 0 10px;
}

.auth-drawer-panel h3 {
    font-family: Montserrat;
    text-transform: uppercase;
    color: #000000;
    font-size: 14px;
    font-weight: 350;
    margin: 18px 0 10px;
}

.auth-drawer-panel p {
    color: #000000bf;
    font-size: 14px;
    margin: 0 0 10px;
}

.auth-drawer-panel ul {
    margin: 0;
    padding-left: 18px;
    color: #000000bf;
    font-size: 14px;
}

.auth-drawer-panel li {
    margin: 0 0 10px;
}

.about-drawer-logo {
    display: flex;
    justify-content: center;
    margin: 10px 0 12px;
}

.about-drawer-logo img {
    display: block;
    width: 100%;
    max-width: 620px;
    height: auto;
    object-fit: contain;
}

/* News drawer content */
.news-panel {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.news-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: 0 0 10px;
}

.news-toolbar .news-back {
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid #00000038;
    color: #b74c09;
    border-radius: 12px;
    padding: 8px 10px;
    font-weight: 450;
    cursor: pointer;
}

.news-view {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
}

.news-footer {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid rgba(240, 206, 170, 0.35);
}

.news-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
    min-height: 0;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    flex: 1 1 0;
    min-height: 0;
    grid-template-rows: repeat(2, minmax(0, 1fr));
}

/* In grid view keep items compact and predictable */
.news-card.is-featured .news-title {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
    /* Cross-browser fallback: 2 lines at 1.25 line-height */
    max-height: 2.5em;
}

.news-card.is-featured .news-excerpt {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
    /* Cross-browser fallback: 2 lines at 1.45 line-height */
    max-height: 2.9em;
}

.news-grid .news-card {
    padding: 10px;
    gap: 10px;
}

.news-grid .news-title {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    overflow: hidden;
}

.news-grid .news-excerpt {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 6px;
}

.news-grid .news-meta {
    margin-top: 3px;
    font-size: 11px;
}

.news-grid .news-actions {
    margin-top: 6px;
}

.news-grid .news-btn {
    padding: 7px 10px;
    border-radius: 12px;
    font-size: 12px;
}

.news-card.is-featured {
    width: 100%;
    /* Reserve more height than a single grid row (grid height / 2) */
    flex: 0 0 clamp(150px, 42%, 260px);
}

.news-card {
    border: 1px solid rgba(240, 206, 170, 0.35);
    border-radius: 18px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.55);
    display: grid;
    /* Make the thumbnail a bit wider (~30% of the card), with sensible bounds */
    grid-template-columns: clamp(112px, 30%, 180px) 1fr;
    gap: 12px;
    align-items: stretch;
    cursor: pointer;
    overflow: hidden;
    isolation: isolate;
}

.news-card:active {
    transform: translateY(0.5px);
}

.news-card > div {
    min-width: 0;
    display: flex;
    flex-direction: column;
    min-height: 0;
    position: relative;
    z-index: 1;
}

.news-actions {
    margin-top: auto;
    display: flex;
    justify-content: flex-end;
}

.news-card.no-image {
    grid-template-columns: 1fr;
}

.news-card.no-image > div {
    grid-column: 1 / -1;
}

.news-card img {
    width: 100%;
    height: calc(100% + 24px);
    margin: -12px 0 -12px -12px;
    object-fit: cover;
    border-radius: 18px 0 0 18px;
    border: 0;
    display: block;
    position: relative;
    z-index: 0;
}

/* Featured card: allow it to be larger than grid items */
.news-card.is-featured {
    display: flex;
    align-items: stretch;
}

.news-card.is-featured > div {
    flex: 1 1 auto;
    align-self: stretch;
}

.news-card.is-featured img {
    flex: 0 0 40%;
    width: 40%;
    height: calc(100% + 24px);
    margin: -12px 0 -12px -12px;
    border-radius: 18px 0 0 18px;
}

/* Grid cards stretch to fill available space (2 rows) */
.news-grid .news-card {
    height: 100%;
}


.news-title {
    margin: 0;
    color: #000000;
    font-size: 14px;
    font-weight: 300;
    line-height: 1.25;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.news-meta {
    margin-top: 4px;
    color: #0000006e;
    font-size: 12px;
}

.news-excerpt {
    font-family: Montserrat;
    margin-top: 8px;
    color: rgba(0, 0, 0, 0.76);
    font-size: 13px;
    line-height: 1.45;
    overflow-wrap: anywhere;
    word-break: break-word;
    min-height: 0;
}

.news-body,
.news-body * {
    overflow-wrap: anywhere;
    word-break: break-word;
}

.news-btn {
    border: 1px solid #00000059;
    cursor: pointer;
    border-radius: 14px;
    padding: 9px 12px;
    font-weight: 500;
    white-space: nowrap;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    background: #fff;
    color: #291d1682;
    box-shadow: 0 10px 18px rgba(0, 0, 0, 0.03), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.news-btn:disabled {
    opacity: 0.6;
    cursor: default;
}

.news-pager {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 12px;
}

.news-page-info {
    color: rgba(0, 0, 0, 0.66);
    font-size: 12px;
}

.news-body {
    color: rgb(0, 0, 0);
    font-size: 14px;
    line-height: 1.55;
    white-space: normal;
}

.news-body img {
    max-width: 100%;
    width: min(100%, 420px);
    height: auto;
    border-radius: 14px;
    display: block;
    margin: 10px auto 12px;
}

.news-body img[data-news-size="sm"] {
    width: min(100%, 220px);
}

.news-body img[data-news-size="md"] {
    width: min(100%, 420px);
}

.news-body img[data-news-size="lg"] {
    width: min(100%, 640px);
}

.news-body img[data-news-wrap="left"] {
    float: left;
    max-width: 45%;
    margin: 6px 12px 10px 0;
}

.news-body img[data-news-wrap="right"] {
    float: right;
    max-width: 45%;
    margin: 6px 0 10px 12px;
}

.news-body::after {
    content: "";
    display: block;
    clear: both;
}

.news-body.is-plain {
    white-space: pre-wrap;
}

/* Minimal Quill output support (no Quill CSS on login page) */
.news-body p { margin: 0 0 10px; }
.news-body ul,
.news-body ol {
    margin: 0 0 10px;
    padding-left: 18px;
}
.news-body ul { list-style: disc; }
.news-body ol { list-style: decimal; }
.news-body li { margin: 0 0 6px; }

.news-body .ql-align-center { text-align: center; }
.news-body .ql-align-right { text-align: right; }
.news-body .ql-align-justify { text-align: justify; }

.news-body .ql-indent-1 { padding-left: 18px; }
.news-body .ql-indent-2 { padding-left: 36px; }
.news-body .ql-indent-3 { padding-left: 54px; }
.news-body .ql-indent-4 { padding-left: 72px; }

/* Single-page auth: show/hide views inside the same card */
.auth-view { display: none; }
.auth-view.is-active { display: block; }

@media (max-width: 920px) {
    .auth-drawer-tab,
    .auth-drawer-panel {
        display: none;
    }
}

/* Mobile Responsive */
@media (max-width: 480px) {
    body {
        padding: 8px;
        align-items: flex-start;
        --login-scale: 0.94;
    }
    
    .soft-card {
        padding: 24px 18px;
        border-radius: 24px;
        /* Avoid inner scrolling on mobile; rely on page scroll if needed. */
        max-height: none;
        overflow: hidden;
    }

    .comfort-header {
        margin-bottom: 18px;
    }

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

    .soft-field input {
        padding: 14px 14px;
        font-size: 14px;
    }

    .soft-field label {
        font-size: 14px;
    }

    .soft-field:has(.gentle-toggle) input {
        padding-right: 52px;
    }
    
    .comfort-title {
        font-size: 1.5rem;
    }
    
    .gentle-logo {
        width: 76px;
        height: 76px;
        margin: 0 auto 18px;
    }

    .comfort-options {
        margin-bottom: 18px;
        gap: 12px;
    }
    
    .logo-circle {
        width: 52px;
        height: 52px;
    }
    
    .comfort-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .comfort-social {
        flex-direction: column;
    }

    .comfort-button {
        margin-bottom: 16px;
        min-height: 48px;
    }
}

/* Very short screens: tighten spacing further so the panel stays usable. */
@media (max-width: 480px) and (max-height: 700px) {
    body {
        --login-scale: 0.90;
    }

    .soft-card {
        padding: 18px 14px;
    }

    .comfort-header {
        margin-bottom: 14px;
    }

    .soft-field {
        margin-bottom: 12px;
    }

    .soft-field input {
        padding: 12px 14px;
        font-size: 13px;
    }

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

    .comfort-options {
        margin-bottom: 18px;
        gap: 10px;
    }

    .comfort-button {
        margin-bottom: 16px;
    }
}