* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    background: radial-gradient(circle at 20% 30%, #7a0b4a, #170612);
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, 'BlinkMacSystemFont', 'Roboto', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    position: relative;
    user-select: none;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI4MCIgaGVpZ2h0PSI4MCIgdmlld0JveD0iMCAwIDQwIDQwIj48cGF0aCBmaWxsPSIjMjIxYzNjIiBmaWxsLW9wYWNpdHk9IjAuMDMiIGQ9Ik0wIDBoNDB2NDBIMHoiLz48cGF0aCBkPSJNMjAgMThjLTEuMSAwLTIgLjktMiAyIDAgLjguNCAxLjUgMSAxLjhsLTEgMi41Yy0uMS4zIDAgLjYuMi44LjIuMi41LjIuNyAwbDEuNS0yLjJjLjMuMS43LjEgMSAwbDEuNSAyLjJjLjIuMi41LjIuNyAwIC4yLS4yLjMtLjUuMi0uOGwtMS0yLjVjLjYtLjMgMS0xIDEuMS0xLjggMC0xLjEtLjktMi0yLTJ6IiBmaWxsPSIjM2EyYzVjIiBmaWxsLW9wYWNpdHk9IjAuMTUiLz48L3N2Zz4=');
    background-repeat: repeat;
    opacity: 0.4;
    pointer-events: none;
    z-index: 0;
}

.nas-login-card {
    background: rgb(33 12 27 / 75%);
    backdrop-filter: blur(18px);
    border-radius: 2.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6), 0 0 0 1px rgb(255 84 149 / 20%);
    width: 100%;
    max-width: 460px;
    padding: 2rem 1.8rem 2.5rem;
    transition: transform 0.2s ease;
    z-index: 2;
}

.nas-header {
    text-align: center;
    margin-bottom: 2rem;
}

.nas-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #a27d8d, #f24ed2);
    border-radius: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    box-shadow: 0 12px 20px -8px rgb(0 0 0 / 40%);
}

.nas-icon svg {
    width: 36px;
    height: 36px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

h1 {
    font-size: 1.8rem;
    font-weight: 600;
    background: linear-gradient(120deg, #f0eaff, #ffb3d4);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    letter-spacing: -0.3px;
    user-select: none;
}

.sub {
    color: #e0a0ce;
    font-size: 0.85rem;
    margin-top: 0.4rem;
    font-weight: 400;
    user-select: none;
}

.input-group {
    margin-bottom: 1.6rem;
}

label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: #ffcadf;
    letter-spacing: 0.3px;
    user-select: none;
}

.input-field {
    width: 100%;
    background: rgb(20 6 14 / 70%);
    border: 1px solid rgb(246 92 187 / 50%);
    border-radius: 1.2rem;
    padding: 0.9rem 1.2rem;
    font-size: 1rem;
    color: #f3ebff;
    font-family: inherit;
    transition: all 0.2s;
    outline: none;
    user-select: none;
}

.input-field:focus {
    border-color: #ff007b;
    box-shadow: 0 0 0 3px rgb(255 84 191 / 30%);
    background: rgb(40 12 28 / 90%);
}

.input-field::placeholder {
    color: #8e5479;
    font-weight: 400;
}

.login-btn {
    width: 100%;
    background: linear-gradient(95deg, #97305e, #993f85);
    border: none;
    border-radius: 2rem;
    padding: 0.9rem;
    font-size: 1rem;
    font-weight: 600;
    color: white;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 0.5rem;
    box-shadow: 0 8px 18px rgb(234 0 143 / 30%);
    letter-spacing: 0.3px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    user-select: none;
}

.login-btn:hover {
    background: linear-gradient(95deg, #ff0b81, #ff81ee);
    transform: translateY(-2px);
    box-shadow: 0 14px 24px rgb(173 13 127 / 40%);
}

.login-btn:active {
    transform: translateY(1px);
}

.error-message {
    background: rgb(255 75 115 / 46%);
    border-left: 3px solid #ff6b8b;
    border-radius: 1rem;
    padding: 0.8rem 1rem;
    margin-top: 1.5rem;
    font-size: 0.85rem;
    color: #ffb8ce;
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}

.error-hidden {
    display: none;
}

.nas-footer {
    margin-top: 2rem;
    text-align: center;
    font-size: 0.75rem;
    color: #b99bae;
    border-top: 1px solid rgb(255 0 118 / 25%);
    padding-top: 1.5rem;
    user-select: none;
}

.security-badge {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 0.7rem;
}

.security-badge span {
    background: rgb(0 0 0 / 47%);
    padding: 0.2rem 0.7rem;
    border-radius: 40px;
    font-size: 0.7rem;
    font-weight: 500;
    user-select: none;
}

@keyframes gentleShake {
    0% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-4px);
    }

    75% {
        transform: translateX(4px);
    }

    100% {
        transform: translateX(0);
    }
}

.shake-effect {
    animation: gentleShake 0.25s ease-in-out 0s 1;
}

.caps-warning {
    font-size: 0.7rem;
    color: #f8b5dd;
    margin-top: 0.25rem;
    margin-left: 0.8rem;
    display: inline-block;
}

@media (max-width: 500px) {
    .nas-login-card {
        padding: 1.6rem 1.4rem;
    }

    h1 {
        font-size: 1.5rem;
    }
}
