/* Login / Register — warm NGL theme (orange + pink, matches index & main site) */
:root {
    --ngl-orange: #ff8700;
    --ngl-orange-deep: #ff8d10;
    --ngl-pink: #ec1187;
    --ngl-pink-btn: #ed257c;
    --ngl-coral: #f13249;
    --ngl-warm-gradient: linear-gradient(135deg, #ff8700 0%, #ff005a 55%, #ec1187 100%);
    --ngl-warm-gradient-soft: linear-gradient(160deg, #ffb347 0%, #ff8700 45%, #f13249 100%);
}

html:has(.login-page) {
    background-image: url(/images/website-bg.jpg);
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-color: #fff5eb;
}

body:has(.login-page) {
    margin: 0;
    min-height: 100vh;
    background: transparent;
}

.login-page {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 20px;
    direction: rtl;
    overflow: hidden;
    box-sizing: border-box;
}

.login-deco {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: min(32vw, 260px);
    background: var(--ngl-warm-gradient-soft);
    border-radius: 0 55% 45% 0 / 0 42% 58% 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0.92;
}

.login-card {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 420px;
    text-align: center;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 28px;
    padding: 36px 28px 32px;
    box-shadow: 0 12px 40px rgba(255, 100, 30, 0.15), 0 2px 8px rgba(0, 0, 0, 0.06);
}

.login-title {
    margin: 0 0 14px;
    font-size: clamp(26px, 6vw, 38px);
    font-weight: 800;
    color: #1a1a1a;
    line-height: 1.4;
}

.login-desc {
    margin: 0 auto 28px;
    max-width: 360px;
    font-size: 14px;
    line-height: 1.9;
    color: #444;
    font-weight: 400;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
    width: 100%;
}

.login-field {
    position: relative;
    width: 100%;
}

.login-icon {
    position: absolute;
    top: 50%;
    right: 18px;
    transform: translateY(-50%);
    color: #c47a20;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.login-input {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid rgba(255, 135, 0, 0.22);
    outline: none;
    background: #fff8f0;
    border-radius: 999px;
    padding: 16px 52px 16px 20px;
    font-size: 15px;
    font-family: inherit;
    color: #222;
    text-align: right;
    -webkit-appearance: none;
    appearance: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.login-input::placeholder {
    color: #b08860;
}

.login-input:focus {
    border-color: var(--ngl-orange);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(255, 135, 0, 0.22);
}

.login-input-readonly {
    color: #666;
    background: #fff3e6;
    cursor: default;
}

.login-desc-highlight strong {
    color: var(--ngl-coral);
}

.login-footer {
    margin-top: 20px;
    font-size: 14px;
    color: #555;
}

.login-footer a {
    color: var(--ngl-pink-btn);
    font-weight: 600;
    text-decoration: underline;
}

.login-footer a:hover {
    color: var(--ngl-orange-deep);
}

.login-submit {
    width: 100%;
    border: none;
    border-radius: 999px;
    padding: 16px 20px;
    margin-top: 6px;
    background: var(--ngl-warm-gradient);
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: transform 0.12s ease, box-shadow 0.15s ease, filter 0.15s ease;
    box-shadow: 0 6px 20px rgba(255, 100, 30, 0.35);
}

.login-submit:hover {
    filter: brightness(1.05);
    box-shadow: 0 8px 24px rgba(255, 80, 90, 0.4);
}

.login-submit:active {
    transform: scale(0.99);
}

.login-error {
    color: var(--ngl-coral);
    font-size: 13px;
    text-align: center;
    min-height: 1.2em;
}

.login-error ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

@media (max-width: 640px) {
    .login-deco {
        width: 80px;
        border-radius: 0 70% 50% 0 / 0 40% 60% 0;
    }

    .login-page {
        padding: 24px 16px 40px;
        align-items: flex-start;
        padding-top: 10vh;
    }

    .login-card {
        padding: 28px 20px 24px;
        border-radius: 22px;
    }
}
