/* source: assets/archive.css lines 97-553 */
body {
    margin: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body.page-auth {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    background: #060402;
}

.bg {
    position: fixed;
    inset: 0;
    background: linear-gradient(180deg, #2a1b0f 0%, #563722 50%, #7a521a 100%);
    z-index: 0;
}

.dunes {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40vh;
    z-index: 1;
    pointer-events: none;
}

.dune {
    position: absolute;
    bottom: 0;
}

.dune-1 {
    left: -5%;
    width: 65%;
    height: 200px;
    background: linear-gradient(to top, #170d06, #170d06 55%, transparent);
    border-radius: 55% 60% 0 0;
}

.dune-2 {
    right: -3%;
    width: 58%;
    height: 200px;
    background: linear-gradient(to top, #170d06, #170d06 55%, transparent);
    border-radius: 62% 50% 0 0;
}

.dune-3 {
    left: 28%;
    width: 52%;
    height: 145px;
    background: linear-gradient(to top, #2c1c0a00, #23180e00 55%, transparent);
    border-radius: 48% 52% 0 0;
}

.spice-glow {
    position: fixed;
    bottom: 7%;
    left: 50%;
    transform: translateX(-50%);
    width: 55%;
    height: 75px;
    background: radial-gradient(ellipse at center, rgb(48 31 4 / 88%) 0%, rgb(0 0 0 / 0%) 70%);
    z-index: 2;
    animation: glowPulse 5.5s ease-in-out infinite;
    will-change: opacity;
    backface-visibility: hidden;
}

@keyframes glowPulse {
    0%,
    100% {
        opacity: 0.52;
    }

    50% {
        opacity: 0.82;
    }
}

#star-canvas {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    transform: translateZ(0);
}

.login-wrap {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 440px;
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    isolation: isolate;
    contain: layout paint;
}

.orbit-ring {
    position: absolute;
    width: 380px;
    height: 380px;
    border: 1px solid rgba(211, 99, 58, 0.07);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate3d(-50%, -50%, 0);
    animation: rotateSlow 35s linear infinite;
    pointer-events: none;
    will-change: transform;
    backface-visibility: hidden;
    contain: paint;
}

.orbit-ring::before {
    content: "";
    position: absolute;
    top: -4px;
    left: 50%;
    width: 8px;
    height: 8px;
    background: rgba(211, 99, 58, 0.75);
    border-radius: 50%;
    box-shadow: 0 0 12px rgba(211, 99, 58, 0.9), 0 0 24px rgba(211, 99, 58, 0.4);
}

@keyframes rotateSlow {
    from {
        transform: translate3d(-50%, -50%, 0) rotate(0deg);
    }

    to {
        transform: translate3d(-50%, -50%, 0) rotate(360deg);
    }
}

.login-card {
    position: relative;
    overflow: hidden;
    width: 100%;
    padding: 52px 44px;
    background: linear-gradient(180deg, rgba(26, 19, 13, 0.96), rgba(13, 9, 6, 0.97));
    border: 1px solid rgba(211, 99, 58, 0.16);
    border-radius: 24px;
    box-shadow: inset 6px 4px 80px 13px rgb(25 11 2 / 27%), inset 0 1px 0 rgb(127 68 41 / 40%);
    transform: translateZ(0);
    isolation: isolate;
    contain: paint;
    backface-visibility: hidden;
}

.login-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 12%;
    right: 12%;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(211, 99, 58, 0.55),
        rgba(228, 218, 196, 0.25),
        rgba(211, 99, 58, 0.55),
        transparent
    );
}

.card-blob {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.card-blob-tl {
    top: -70px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(211, 99, 58, 0.07) 0%, transparent 70%);
}

.card-blob-br {
    bottom: -90px;
    left: -60px;
    width: 220px;
    height: 220px;
    background: radial-gradient(circle, rgba(184, 91, 63, 0.05) 0%, transparent 70%);
}

.login-header {
    text-align: center;
    margin-bottom: 38px;
}

.login-emblem {
    width: 76px;
    height: 76px;
    display: block;
    margin: 0 auto 16px;
    object-fit: contain;
    filter: drop-shadow(0 0 18px rgba(211, 99, 58, 0.45));
    animation: emblemFloat 3.5s ease-in-out infinite;
    transform: translateZ(0);
    will-change: transform;
    backface-visibility: hidden;
}

@keyframes emblemFloat {
    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-7px);
    }
}

.login-title {
    font-size: 1.45em;
    font-weight: 700;
    color: #e4dac4;
    letter-spacing: 4px;
    margin-bottom: 8px;
}

.login-subtitle {
    font-size: 0.7em;
    color: rgba(154, 140, 122, 0.5);
    letter-spacing: 3px;
    text-transform: uppercase;
}

.sep {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 32px;
}

.sep-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(211, 99, 58, 0.28));
}

.sep-line:last-child {
    background: linear-gradient(270deg, transparent, rgba(211, 99, 58, 0.28));
}

.sep-icon {
    color: rgba(211, 99, 58, 0.5);
    font-size: 0.85em;
}

.input-group {
    margin-bottom: 28px;
}

.input-label {
    display: block;
    margin-bottom: 10px;
    font-size: 0.7em;
    font-weight: 600;
    color: rgba(154, 140, 122, 0.65);
    letter-spacing: 2.5px;
    text-transform: uppercase;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-prefix {
    position: absolute;
    left: 16px;
    font-size: 1em;
    color: rgba(211, 99, 58, 0.45);
    pointer-events: none;
    transition: color 0.3s;
    z-index: 1;
}

.pass-input::placeholder {
    color: rgba(154, 140, 122, 0.35);
    letter-spacing: 0.5px;
    font-size: 0.88em;
}
#form-title::placeholder,
#form-url::placeholder,
#form-icon::placeholder {
    color: #8f8377;
}
:root[data-theme="light"] .notes-search-input::placeholder {
    color: #8a7662;
}

:root[data-theme="dark"] .notes-search-input::placeholder {
    color: #7f6f61;
}
.pass-input {
    width: 100%;
    padding: 15px 48px 15px 50px;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(211, 99, 58, 0.18);
    border-radius: 12px;
    color: #e4dac4;
    font-size: 1em;
    outline: none;
    transition: border-color 0.3s, background 0.3s, box-shadow 0.3s;
    letter-spacing: 2px;
}

.pass-input:focus {
    border-color: rgba(211, 99, 58, 0.55);
    background: rgba(211, 99, 58, 0.04);
    box-shadow: 0 0 0 4px rgba(211, 99, 58, 0.09), 0 5px 25px rgba(0, 0, 0, 0.3);
}

.input-wrapper:focus-within .input-prefix {
    color: rgba(211, 99, 58, 0.85);
}

.submit-btn {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: 12px;
    color: #fff;
    font-size: 0.95em;
    font-weight: 700;
    letter-spacing: 3px;
    cursor: pointer;
    background: linear-gradient(135deg, #d3633a 0%, #b85b3f 55%, #9c4b32 100%);
    box-shadow: 0 4px 22px rgba(211, 99, 58, 0.28);
    transform: translateZ(0);
    backface-visibility: hidden;
    transition: box-shadow 0.22s ease, filter 0.22s ease, background 0.22s ease;
}

.submit-btn::after {
    content: "";
    position: absolute;
    top: 0;
    left: -22%;
    width: 38%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12), transparent);
    pointer-events: none;
    transform: translate3d(-155%, 0, 0) skewX(-15deg);
    transition: transform 0.5s ease;
    will-change: transform;
}

.submit-btn:hover::after {
    transform: translate3d(365%, 0, 0) skewX(-15deg);
}

.submit-btn:hover {
    box-shadow: 0 8px 26px rgba(211, 99, 58, 0.36);
    filter: brightness(1.03);
}

.submit-btn:active {
    filter: brightness(0.98);
}

.error-alert {
    margin-bottom: 18px;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 0.85em;
    line-height: 1.7;
}

.error-alert {
    color: #ff8a6e;
    background: rgba(217, 56, 30, 0.09);
    border: 1px solid rgba(217, 56, 30, 0.25);
    border-left: 3px solid rgba(217, 56, 30, 0.6);
}

.auth-alert.error {
    color: #ffd8cb;
    background: rgba(217, 56, 30, 0.16);
    border: 1px solid rgba(255, 144, 116, 0.42);
    border-left: 3px solid rgba(255, 144, 116, 0.9);
    font-weight: 400;
    font-size: 12px;
    margin: 10px 0;
    padding: 15px;
}

.auth-alert.info {
    color: #f1d8c8;
    background: rgba(211, 99, 58, 0.08);
    border: 1px solid rgba(211, 99, 58, 0.18);
}

.login-footer {
    margin-top: 28px;
    text-align: center;
    font-size: 0.68em;
    color: rgba(154, 140, 122, 0.28);
    letter-spacing: 1.5px;
    line-height: 1.9;
}

.eye-btn {
    position: absolute;
    right: 14px;
    background: none;
    border: none;
    cursor: pointer;
    color: rgba(154, 140, 122, 0.4);
    font-size: 1em;
    padding: 4px;
    transition: color 0.2s;
}

.eye-btn svg,
.theme-toggle svg,
.tool-btn svg,
.notes-header-title svg,
.notes-search-clear svg,
.note-window-title svg,
.note-window-btn svg,
.icon-text svg,
.note-editor-btn svg,
.hamburger svg,
.action-btn svg {
    width: 16px;
    height: 16px;
    display: block;
    flex-shrink: 0;
}

.eye-btn:hover {
    color: rgba(211, 99, 58, 0.7);
}

