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

body {
    min-height: 100vh;
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    background-color: #ffffff;
    position: relative;
    color: #1e1e2a;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.bg-glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    background: radial-gradient(circle at 30% 40%, rgba(135, 206, 250, 0.25) 0%, transparent 35%),
                radial-gradient(circle at 80% 70%, rgba(173, 216, 230, 0.2) 0%, transparent 40%),
                radial-gradient(circle at 50% 20%, rgba(176, 224, 230, 0.15) 0%, transparent 50%);
    filter: blur(45px);
    animation: gentleShift 18s infinite alternate ease-in-out;
}

@keyframes gentleShift {
    0% { transform: scale(1) translate(0, 0); opacity: 0.7; }
    50% { transform: scale(1.1) translate(-2%, 1%); opacity: 0.9; }
    100% { transform: scale(1.05) translate(2%, -1%); opacity: 0.8; }
}

.app-container {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.password-screen {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
    transition: opacity 0.25s;
}

.password-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 36px;
    padding: 1.8rem 1.8rem;
    box-shadow: 0 20px 40px -12px rgba(0, 80, 120, 0.12), 0 4px 18px rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.6);
}

.input-group {
    display: flex;
    align-items: center;
    background: #ffffff;
    border-radius: 60px;
    padding: 0 0 0 1.5rem;
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.02), 0 2px 8px rgba(135,206,250,0.08);
    border: 1px solid #e9f0f5;
    transition: border 0.15s;
}
.input-group:focus-within {
    border-color: #7ec8f0;
    box-shadow: 0 0 0 3px rgba(135,206,250,0.2);
}

.password-input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-size: 1.1rem;
    padding: 1rem 0.2rem 1rem 0;
    color: #1e2f3d;
    font-weight: 450;
    letter-spacing: 0.3px;
}
.password-input::placeholder {
    color: #a6c1cf;
    font-weight: 300;
    font-size: 1rem;
}

.go-btn {
    background: #a0d4f0;
    border: none;
    width: 3.8rem;
    height: 3.4rem;
    border-radius: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 300;
    color: white;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 10px rgba(96, 185, 230, 0.2);
    border: 1px solid rgba(255,255,255,0.4);
    line-height: 1;
    margin: 2px;
}
.go-btn:hover {
    background: #7bbce0;
    transform: scale(0.98);
    box-shadow: 0 6px 12px rgba(70, 160, 210, 0.25);
}
.go-btn:active { background: #5fa9cf; }

.error-hint {
    min-height: 2.2rem;
    margin-top: 0.5rem;
    margin-left: 0.8rem;
    font-size: 0.9rem;
    color: #d14b4b;
    opacity: 0;
    transition: opacity 0.15s;
    font-weight: 450;
}
.error-hint.show { opacity: 1; }

.slides-screen {
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 2rem 1.5rem 1.5rem;
}

.slide-content-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 1rem 0 2rem;
}

.slide-card {
    max-width: 860px;
    width: 100%;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 42px;
    padding: 2.8rem 2.6rem;
    box-shadow: 0 25px 40px -18px rgba(33, 105, 140, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.8);
    transition: box-shadow 0.2s;
}

.fade-text {
    transition: opacity 0.45s ease-in-out;
    opacity: 1;
}
.fade-text.fade-out {
    opacity: 0;
}

.slide-text {
    font-size: 1.8rem;
    font-weight: 460;
    line-height: 1.55;
    color: #173e4c;
    word-break: break-word;
    white-space: pre-wrap;
    letter-spacing: -0.01em;
}

.progress-indicator {
    margin-bottom: 0.8rem;
    text-align: right;
    font-size: 0.9rem;
    color: #5c8fa3;
    opacity: 0.7;
    font-weight: 400;
    letter-spacing: 1px;
}

.slide-footer {
    display: flex;
    justify-content: flex-end;
    margin-top: 1rem;
}

.next-btn {
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(160, 208, 232, 0.6);
    padding: 0.9rem 2.6rem;
    border-radius: 60px;
    font-size: 1.35rem;
    font-weight: 460;
    color: #1f6179;
    cursor: pointer;
    box-shadow: 0 8px 16px -8px rgba(80, 150, 190, 0.12);
    transition: background 0.2s, border-color 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    letter-spacing: 0.5px;
}
.next-btn:hover {
    background: rgba(210, 235, 250, 0.8);
    border-color: #6fb6da;
}
.next-btn:active {
    background: #c4e0f0;
}

.arrow-symbol {
    font-size: 1.6rem;
    line-height: 1;
    margin-left: 4px;
}

@media (max-width: 600px) {
    .slide-card { padding: 2rem 1.6rem; }
    .slide-text { font-size: 1.4rem; }
    .password-card { padding: 1.5rem 1.2rem; }
}
@media (max-width: 420px) {
    .slide-text { font-size: 1.25rem; }
}

.hidden { display: none !important; }