/* =========================================================
   SanyogRishtey.com — Login (polished)
   ========================================================= */

:root {
    --coral: #e85a54;
    --coral-deep: #d4453f;
    --coral-soft: #fff1ef;
    --ink: #2a2220;
    --ink-soft: #7a6f6b;
    --line: #eadfdb;
    --card: #ffffff;
    --page: #f7f2ef;
    --error: #c0392b;
    --font-display: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'Source Sans 3', 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }

body.login-page {
    margin: 0;
    min-height: 100vh;
    font-family: var(--font-body);
    color: var(--ink);
    background:
        radial-gradient(ellipse 80% 50% at 10% -10%, rgba(232, 90, 84, 0.18), transparent 55%),
        radial-gradient(ellipse 70% 45% at 100% 0%, rgba(23, 162, 162, 0.12), transparent 50%),
        linear-gradient(180deg, #faf6f3 0%, var(--page) 45%, #f3ebe6 100%);
}

.login-shell {
    min-height: calc(100vh - 64px - 120px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 18px 64px;
}

.login-panel {
    position: relative;
    width: 100%;
    max-width: 420px;
    background: var(--card);
    border: 1px solid rgba(234, 223, 219, 0.9);
    border-radius: 20px;
    padding: 36px 34px 32px;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.8) inset,
        0 18px 50px -28px rgba(80, 40, 30, 0.35);
    overflow: hidden;
    animation: login-rise 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.login-panel__glow {
    position: absolute;
    top: -80px;
    right: -60px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(232, 90, 84, 0.16), transparent 70%);
    pointer-events: none;
}

@keyframes login-rise {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-hero {
    text-align: center;
    margin-bottom: 28px;
    position: relative;
}

.login-hero__brand {
    margin: 0 0 10px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--coral);
}

.login-hero__title {
    margin: 0 0 8px;
    font-family: var(--font-display);
    font-size: clamp(34px, 6vw, 42px);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--ink);
}

.login-hero__sub {
    margin: 0;
    font-size: 15px;
    line-height: 1.5;
    color: var(--ink-soft);
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: relative;
}

.login-alert {
    padding: 12px 14px;
    border-radius: 10px;
    background: #fdecea;
    border: 1px solid #f5c9c5;
    color: var(--error);
    font-size: 13.5px;
    font-weight: 500;
    line-height: 1.4;
}

.login-field label {
    display: block;
    margin-bottom: 7px;
    font-size: 13px;
    font-weight: 600;
    color: var(--ink-soft);
}

.login-input {
    display: flex;
    align-items: center;
    gap: 0;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fffcfb;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    overflow: hidden;
}

.login-input:focus-within {
    border-color: var(--coral);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(232, 90, 84, 0.12);
}

.login-input__icon {
    flex: 0 0 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #b5a7a2;
}

.login-input:focus-within .login-input__icon {
    color: var(--coral);
}

.login-input input {
    flex: 1 1 auto;
    min-width: 0;
    border: none !important;
    outline: none;
    background: transparent !important;
    box-shadow: none !important;
    padding: 13px 12px 13px 0;
    font-size: 15px;
    font-family: inherit;
    color: var(--ink);
}

.login-input input::placeholder {
    color: #b0a39e;
}

.login-input--password input {
    padding-right: 4px;
}

.login-eye {
    flex: 0 0 44px;
    height: 46px;
    border: none;
    background: transparent;
    color: #a59893;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.login-eye:hover,
.login-eye.is-visible {
    color: var(--coral);
    background: var(--coral-soft);
}

.login-eye .login-eye__closed {
    display: none !important;
}

.login-eye.is-visible .login-eye__open {
    display: none !important;
}

.login-eye.is-visible .login-eye__closed {
    display: block !important;
}

.login-input input::-ms-reveal,
.login-input input::-ms-clear {
    display: none;
}

.login-error {
    display: block;
    margin-top: 6px;
    font-size: 12.5px;
    color: var(--error);
}

.login-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 2px;
}

.login-check {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--ink);
    cursor: pointer;
    margin: 0;
}

.login-check input {
    width: 16px;
    height: 16px;
    accent-color: var(--coral);
    margin: 0;
}

.login-forgot {
    font-size: 14px;
    font-weight: 600;
    color: var(--coral);
    text-decoration: none;
}

.login-forgot:hover {
    color: var(--coral-deep);
    text-decoration: underline;
}

.login-submit {
    margin-top: 6px;
    width: 100%;
    border: none;
    border-radius: 999px;
    padding: 14px 24px;
    font-size: 15px;
    font-weight: 700;
    font-family: inherit;
    letter-spacing: 0.02em;
    color: #fff;
    cursor: pointer;
    background: linear-gradient(135deg, var(--coral) 0%, var(--coral-deep) 100%);
    box-shadow: 0 10px 24px -12px rgba(212, 69, 63, 0.7);
    transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.login-submit:hover {
    transform: translateY(-1px);
    filter: brightness(1.03);
    box-shadow: 0 14px 28px -12px rgba(212, 69, 63, 0.75);
}

.login-submit:active {
    transform: translateY(0);
}

.login-switch {
    margin: 8px 0 0;
    text-align: center;
    font-size: 14.5px;
    color: var(--ink-soft);
}

.login-switch a {
    color: var(--coral);
    font-weight: 700;
    text-decoration: none;
}

.login-switch a:hover {
    color: var(--coral-deep);
    text-decoration: underline;
}

@media (max-width: 480px) {
    .login-shell {
        padding: 24px 14px 48px;
        align-items: flex-start;
    }

    .login-panel {
        padding: 28px 20px 24px;
        border-radius: 16px;
    }

    .login-hero {
        margin-bottom: 22px;
    }

    .login-hero__title {
        font-size: 32px;
    }

    .login-meta {
        flex-direction: column;
        align-items: flex-start;
    }
}
