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

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

html {
    height: 100%;
    -webkit-overflow-scrolling: touch;
}

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;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    line-height: 1.5;
    position: relative;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
    scroll-behavior: smooth;
}

body.dark {
    background: radial-gradient(circle at top, #1f1f26 0%, #15161c 45%, #0e0f14 100%);
    color: #e8e2dc;
}

/* Consent modal styles */
.consent-overlay {
    position: fixed;
    inset: 0;
    background: rgba(8, 10, 12, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 24px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease;
}

.consent-overlay.show {
    opacity: 1;
    pointer-events: auto;
}

.consent-modal {
    max-width: 760px;
    background: #fff;
    color: #1f1f1f;
    border-radius: 12px;
    padding: 24px 28px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.35);
    transform: translateY(6px);
}

body.dark .consent-modal {
    background: #15161b;
    color: #e8e2dc;
}

.consent-modal h2 {
    margin-bottom: 8px;
    font-size: 18px;
}

.consent-text {
    margin-bottom: 18px;
    line-height: 1.45;
    color: inherit;
}

.consent-actions {
    text-align: right;
}

.consent-button {
    background: linear-gradient(135deg, #f0ceaa 0%, #e0be9c 100%);
    border: none;
    padding: 10px 14px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
}

body.dark .consent-button {
    background: linear-gradient(135deg, #d0a985 0%, #b0895f 100%);
}

.consent-decline {
    background: transparent;
    border: 1px solid rgba(0,0,0,0.08);
    color: inherit;
    padding: 8px 12px;
    border-radius: 10px;
    margin-right: 8px;
    cursor: pointer;
}

body.dark .consent-decline {
    border-color: rgba(255,255,255,0.06);
}

/* Reduce decorations and heavy effects on touch devices for smoother scrolling */
@media (hover: none) and (pointer: coarse) {
    .soft-background {
        display: none;
    }

    .soft-card {
        backdrop-filter: none;
    }

    .soft-blob {
        animation: none !important;
        filter: blur(12px) !important;
    }
}

/* Theme Toggle */
.theme-toggle-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.install-button {
    background: linear-gradient(135deg, #f0ceaa 0%, #e0be9c 100%);
    border: none;
    padding: 8px 10px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    margin-right: 8px;
}

body.dark .install-button {
    background: linear-gradient(135deg, #d0a985 0%, #b0895f 100%);
}

/* iOS install tutorial overlay */
.ios-install-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease;
}
.ios-install-overlay.show {
    opacity: 1;
    pointer-events: auto;
}
.ios-install-modal {
    max-width: 480px;
    width: 100%;
    background: #fff;
    color: #1f1f1f;
    border-radius: 12px;
    padding: 18px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.35);
}
body.dark .ios-install-modal {
    background: #15161b;
    color: #e8e2dc;
}
.ios-install-modal h3 {
    margin: 0 0 8px 0;
    font-size: 17px;
}
.ios-install-desc { margin-bottom: 12px; line-height: 1.4; }
.ios-install-steps { display: flex; gap: 12px; margin-bottom: 14px; }
.ios-install-steps .step { display:flex; align-items:center; gap:10px; background: rgba(0,0,0,0.03); padding:8px 10px; border-radius:8px; flex:1; }
body.dark .ios-install-steps .step { background: rgba(255,255,255,0.02); }
.step-number { width:28px; height:28px; border-radius:50%; background:#f0ceaa; color:#fff; display:flex; align-items:center; justify-content:center; font-weight:700; }
.step-text { font-size:14px; }
.step-icon { margin-left:auto; width:36px; height:28px; display:flex; align-items:center; justify-content:center; }
.share-icon { background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="%238b6655" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"><path d="M12 2v12"/><path d="M16 6l-4-4-4 4"/><path d="M20 22H4"/></svg>') center/20px no-repeat; }
.plus-icon { font-size:18px; font-weight:700; color:#8b6655; }
.ios-install-actions { text-align:right; display:flex; gap:8px; justify-content:flex-end; }
.ios-install-actions .consent-decline { background:transparent; border:1px solid rgba(0,0,0,0.06); }
body.dark .ios-install-actions .consent-decline { border-color: rgba(255,255,255,0.06); }

.soft-link {
    color: #c19a82;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid rgba(240, 206, 170, 0.4);
    transition: all 0.2s ease;
}

.soft-link:hover {
    color: #8b6655;
    border-color: #f0ceaa;
    background: rgba(240, 206, 170, 0.1);
}

body.dark .soft-link {
    color: #e4c7ac;
    border-color: rgba(120, 112, 130, 0.6);
}

body.dark .soft-link:hover {
    color: #f1dfd2;
    border-color: #f2d6a8;
    background: rgba(242, 214, 168, 0.12);
}

.theme-toggle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: none;
    background: transparent;
    color: #8b6655;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    padding: 6px 8px;
    border-radius: 12px;
    transition: background 0.2s ease, color 0.2s ease;
}

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

.toggle-track {
    width: 44px;
    height: 24px;
    background: rgba(240, 206, 170, 0.35);
    border-radius: 999px;
    position: relative;
    display: inline-flex;
    align-items: center;
    padding: 2px;
    transition: background 0.3s ease;
}

.toggle-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #8b6655;
    transform: translateX(0);
    transition: transform 0.3s ease, background 0.3s ease, color 0.3s ease;
}

.icon-moon {
    display: none;
}

body.dark .theme-toggle {
    color: #d6c9c1;
}

body.dark .theme-toggle:hover {
    background: rgba(80, 80, 96, 0.35);
}

body.dark .toggle-track {
    background: rgba(110, 110, 130, 0.5);
}

body.dark .toggle-thumb {
    transform: translateX(20px);
    background: #1f2129;
    color: #f2d6a8;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

body.dark .icon-sun {
    display: none;
}

body.dark .icon-moon {
    display: block;
}

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

.floating-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
}

.soft-blob {
    position: absolute;
    border-radius: 50% 40% 60% 30%;
    background: linear-gradient(45deg, rgba(240, 206, 170, 0.4), rgba(224, 190, 156, 0.3));
    animation: softFloat 12s ease-in-out infinite;
    /* reduce heavy blur and promote GPU compositing for smoother scrolling */
    filter: blur(40px);
    will-change: transform, opacity;
}

body.dark .soft-blob {
    background: linear-gradient(45deg, rgba(110, 96, 86, 0.35), rgba(70, 62, 58, 0.25));
    filter: blur(60px);
}

.blob-1 {
    width: 300px;
    height: 250px;
    top: -10%;
    left: -5%;
    animation-delay: 0s;
}

.blob-2 {
    width: 200px;
    height: 180px;
    top: 60%;
    right: -5%;
    animation-delay: -4s;
    background: linear-gradient(45deg, rgba(210, 180, 140, 0.3), rgba(195, 165, 125, 0.2));
}

.blob-3 {
    width: 180px;
    height: 160px;
    top: 20%;
    right: 20%;
    animation-delay: -8s;
    background: linear-gradient(45deg, rgba(230, 200, 160, 0.25), rgba(215, 185, 145, 0.2));
}

.blob-4 {
    width: 120px;
    height: 100px;
    bottom: 10%;
    left: 15%;
    animation-delay: -6s;
    background: linear-gradient(45deg, rgba(220, 190, 150, 0.3), rgba(205, 175, 135, 0.25));
}

@keyframes softFloat {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg) scale(1);
        border-radius: 50% 40% 60% 30%;
    }
    25% {
        transform: translate(30px, -20px) rotate(90deg) scale(1.1);
        border-radius: 40% 60% 30% 50%;
    }
    50% {
        transform: translate(-20px, -30px) rotate(180deg) scale(0.9);
        border-radius: 60% 30% 50% 40%;
    }
    75% {
        transform: translate(-30px, 20px) rotate(270deg) scale(1.05);
        border-radius: 30% 50% 40% 60%;
    }
}

.login-container {
    width: 100%;
    max-width: 420px;
    position: relative;
    z-index: 1;
}

.soft-card {
    background: rgba(255, 255, 255, 0.85);
    /* lower the backdrop blur to reduce repaint load on mobile */
    backdrop-filter: blur(6px);
    border-radius: 32px;
    padding: 48px 40px;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.03),
        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;
}

body.dark .soft-card {
    background: rgba(22, 23, 30, 0.85);
    border: 1px solid rgba(64, 66, 78, 0.6);
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.35),
        0 8px 24px rgba(0, 0, 0, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

body.dark .soft-card::before {
    background: linear-gradient(90deg, transparent, rgba(140, 122, 108, 0.4), transparent);
}

.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;
}

.form-notice {
    margin-bottom: 18px;
    font-size: 13px;
    font-weight: 500;
    color: #8b6655;
    min-height: 18px;
}

.form-notice.error {
    color: #d97757;
}

.form-notice.success {
    color: #7a9a75;
}

body.dark .form-notice {
    color: #e0d5cc;
}

body.dark .form-notice.error {
    color: #f2a68b;
}

body.dark .form-notice.success {
    color: #9cc7a3;
}

.section-title {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(139, 102, 85, 0.7);
    margin: 32px 0 16px;
}

body.dark .section-title {
    color: rgba(214, 201, 193, 0.75);
}

.question-group {
    margin-bottom: 24px;
}

.question-title {
    font-size: 15px;
    font-weight: 500;
    color: #8b6655;
    margin-bottom: 12px;
    line-height: 1.5;
}

body.dark .question-title {
    color: #f1dfd2;
}

.option-list {
    display: grid;
    gap: 10px;
}

.option-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: rgba(139, 102, 85, 0.85);
    cursor: pointer;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(240, 206, 170, 0.3);
    background: rgba(255, 255, 255, 0.65);
    transition: all 0.2s ease;
}

.option-item input {
    accent-color: #f0ceaa;
}

.option-item:hover {
    border-color: #f0ceaa;
    background: rgba(240, 206, 170, 0.08);
}

.option-item:has(input:checked) {
    border-color: #f0ceaa;
    background: rgba(240, 206, 170, 0.16);
    font-weight: 500;
}

.question-group.error .option-item {
    border-color: #d97757;
    background: rgba(217, 119, 87, 0.08);
}

body.dark .option-item {
    color: rgba(233, 219, 207, 0.9);
    border-color: rgba(120, 112, 130, 0.55);
    background: rgba(22, 24, 32, 0.9);
}

body.dark .option-item input {
    accent-color: #f2d6a8;
}

body.dark .option-item:hover {
    border-color: #f2d6a8;
    background: rgba(242, 214, 168, 0.12);
}

body.dark .option-item:has(input:checked) {
    border-color: #f2d6a8;
    background: rgba(242, 214, 168, 0.2);
}

body.dark .question-group.error .option-item {
    border-color: #f2a68b;
    background: rgba(242, 166, 139, 0.1);
}

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

.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);
    animation: gentleBreathe 4s ease-in-out infinite;
}

body.dark .logo-circle {
    background: linear-gradient(135deg, #f2d6a8, #cfa982);
    box-shadow:
        0 10px 18px rgba(0, 0, 0, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

@keyframes gentleBreathe {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 8px 16px rgba(240, 206, 170, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 12px 20px rgba(240, 206, 170, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.6);
    }
}

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

body.dark .comfort-icon {
    color: rgba(43, 32, 25, 0.9);
}

.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%;
    animation: glowPulse 3s ease-in-out infinite;
}

body.dark .gentle-glow {
    background: radial-gradient(circle, rgba(242, 214, 168, 0.2) 0%, transparent 70%);
}

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

.comfort-title {
    color: #8b6655;
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

body.dark .comfort-title {
    color: #f1dfd2;
}

.gentle-subtitle {
    color: rgba(139, 102, 85, 0.7);
    font-size: 15px;
    font-weight: 400;
}

body.dark .gentle-subtitle {
    color: rgba(214, 201, 193, 0.75);
}

/* 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: border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease, transform 0.3s ease;
}

body.dark .field-container {
    background: rgba(22, 24, 32, 0.9);
    border-color: rgba(92, 86, 102, 0.55);
}

.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);
}

body.dark .field-container:focus-within {
    border-color: #f2d6a8;
    box-shadow: 0 0 0 3px rgba(242, 214, 168, 0.15);
    background: rgba(25, 27, 36, 0.95);
}

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

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

body.dark .soft-field textarea {
    color: #f1dfd2;
}

body.dark .soft-field input {
    color: #f1dfd2;
}

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

.soft-field label {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(139, 102, 85, 0.6);
    font-size: 15px;
    font-weight: 400;
    pointer-events: none;
    transition: color 0.25s ease, top 0.25s ease, transform 0.25s ease, font-size 0.25s ease;
    z-index: 3;
}

.soft-field textarea + label {
    top: 18px;
    transform: none;
}

.soft-field textarea:focus + label,
.soft-field textarea:not(:placeholder-shown) + label {
    top: 10px;
    font-size: 12px;
    color: #8b6655;
    font-weight: 500;
}

body.dark .soft-field textarea:focus + label,
body.dark .soft-field textarea:not(:placeholder-shown) + label {
    color: #f1dfd2;
}

body.dark .soft-field label {
    color: rgba(214, 201, 193, 0.7);
}

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

body.dark .soft-field input:focus + label,
body.dark .soft-field input:not(:placeholder-shown) + label {
    color: #f1dfd2;
}

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

body.dark .field-accent {
    background: linear-gradient(90deg, #f2d6a8, #c7a588);
}

.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;
}

.toggle-icon {
    width: 20px;
    height: 20px;
    color: rgba(139, 102, 85, 0.6);
    transition: color 0.2s ease;
}

body.dark .toggle-icon {
    color: rgba(214, 201, 193, 0.75);
}

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

body.dark .gentle-toggle:hover {
    background: rgba(90, 92, 110, 0.35);
}

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

.eye-closed {
    display: none;
}

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

.gentle-toggle.toggle-active .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;
}

body.dark .gentle-checkbox {
    color: #e0d5cc;
}

.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: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
    position: absolute;
}

body.dark .check-circle {
    border-color: rgba(130, 124, 144, 0.6);
    background: rgba(24, 26, 34, 0.9);
}

.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: #c19a82;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    position: relative;
}

body.dark .comfort-link {
    color: #e4c7ac;
}

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

body.dark .comfort-link::after {
    background: #e4c7ac;
}

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

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

body.dark .comfort-link:hover {
    color: #f1dfd2;
}

/* Comfort Button */
.comfort-button {
    width: 100%;
    background: transparent;
    color: #8b6655;
    border: none;
    border-radius: 16px;
    padding: 0;
    cursor: pointer;
    font-family: inherit;
    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: transform 0.2s ease, box-shadow 0.2s ease;
}

body.dark .comfort-button {
    color: #2b2019;
}

.button-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #f0ceaa 0%, #e0be9c 100%);
    transition: background 0.25s ease, opacity 0.25s ease;
    border-radius: 16px;
}

body.dark .button-background {
    background: linear-gradient(135deg, #f2d6a8 0%, #d0a985 100%);
}

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

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

body.dark .comfort-button:hover .button-background {
    background: linear-gradient(135deg, #f6ddb5 0%, #d9b08b 100%);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.35);
}

.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;
}

body.dark .spinner-circle {
    border: 2px solid rgba(230, 214, 196, 0.25);
    border-top: 2px solid #f2d6a8;
}

@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;
}

body.dark .button-glow {
    background: linear-gradient(135deg, rgba(242, 214, 168, 0.6), rgba(208, 169, 133, 0.6));
}

.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);
}

body.dark .divider-line {
    background: linear-gradient(90deg, transparent, rgba(140, 122, 108, 0.6), transparent);
}

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

body.dark .divider-text {
    color: rgba(214, 201, 193, 0.7);
}

/* 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: border-color 0.25s ease, transform 0.25s ease, background 0.25s ease;
    min-height: 48px;
    position: relative;
    overflow: hidden;
}

body.dark .social-soft {
    color: #e9dbcf;
    border-color: rgba(120, 112, 130, 0.6);
}

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

body.dark .social-background {
    background: rgba(22, 24, 32, 0.9);
}

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

body.dark .social-soft:hover {
    border-color: #f2d6a8;
}

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

body.dark .social-soft:hover .social-background {
    background: rgba(242, 214, 168, 0.12);
}

.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;
}

body.dark .social-glow {
    background: rgba(242, 214, 168, 0.25);
}

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

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

body.dark .comfort-signup {
    color: rgba(214, 201, 193, 0.75);
}

.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: opacity 0.25s ease, transform 0.25s ease;
    position: relative;
    z-index: 5;
}

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

body.dark .gentle-error {
    color: #f2a68b;
}

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

body.dark .soft-field.error .field-container {
    border-color: #f2a68b;
    background: rgba(242, 166, 139, 0.08);
}

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

body.dark .soft-field.error label {
    color: #f2a68b;
}

/* 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 #f0ceaa;
    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: #8b6655;
    animation: iconBloom 0.6s ease-out 0.6s forwards;
    opacity: 0;
}

body.dark .success-icon {
    color: #f2d6a8;
}

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

.success-title {
    color: #8b6655;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}

body.dark .success-title {
    color: #f1dfd2;
}

.success-desc {
    color: rgba(139, 102, 85, 0.7);
    font-size: 14px;
    font-weight: 400;
}

body.dark .success-desc {
    color: rgba(214, 201, 193, 0.75);
}

/* Mobile Responsive */
@media (max-width: 480px) {
    body {
        padding: 16px;
    }
    
    .soft-card {
        padding: 36px 28px;
        border-radius: 24px;
    }
    
    .comfort-title {
        font-size: 1.75rem;
    }
    
    .gentle-logo {
        width: 64px;
        height: 64px;
    }
    
    .logo-circle {
        width: 52px;
        height: 52px;
    }
    
    .comfort-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .comfort-social {
        flex-direction: column;
    }
    
    .floating-shapes {
        opacity: 0.5;
    }
    
    .soft-blob {
        filter: blur(60px);
    }
}