*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
    font-family: 'Source Sans 3', ui-sans-serif, system-ui, sans-serif;
    color: #1a2e22;
    background: #eef3ef;
    min-height: 100dvh;
}
.font-display { font-family: 'Outfit', ui-sans-serif, system-ui, sans-serif; }

.sipres-shell {
    min-height: 100dvh;
    display: grid;
    grid-template-rows: minmax(220px, 34vh) 1fr;
}

.sipres-hero {
    position: relative;
    overflow: hidden;
    color: #f4faf6;
    background: #0a2918;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.75rem 1.5rem 3.5rem;
}

.sipres-hero-photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 52% 42%;
    transform: scale(1.04);
    animation: sipresKen 18s ease-in-out infinite alternate;
    pointer-events: none;
}

@keyframes sipresKen {
    from { transform: scale(1.04) translate3d(0, 0, 0); }
    to { transform: scale(1.1) translate3d(-1.5%, -1%, 0); }
}

.sipres-hero-scrim {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(180deg, rgba(6, 40, 24, 0.35) 0%, rgba(6, 40, 24, 0.2) 35%, rgba(4, 24, 14, 0.82) 100%),
        linear-gradient(115deg, rgba(10, 61, 36, 0.72) 0%, rgba(10, 61, 36, 0.28) 48%, rgba(8, 35, 20, 0.45) 100%);
}

.sipres-grain {
    position: absolute;
    inset: 0;
    opacity: 0.05;
    pointer-events: none;
    mix-blend-mode: soft-light;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.sipres-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 28rem;
    margin: 0 auto;
    width: 100%;
    animation: sipresIn 0.7s ease-out both;
}
.sipres-brand-row {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-bottom: 1.15rem;
}
.sipres-logo {
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 0.9rem;
    object-fit: contain;
    background: #fff;
    padding: 0.3rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}
.sipres-eyebrow {
    margin: 0;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #facc15;
}
.sipres-product {
    margin: 0.15rem 0 0;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #fff;
}
.sipres-title {
    margin: 0;
    font-size: clamp(1.75rem, 5vw, 2.15rem);
    font-weight: 800;
    letter-spacing: -0.035em;
    line-height: 1.12;
    max-width: 12ch;
}

.sipres-body {
    position: relative;
    z-index: 2;
    margin-top: -2rem;
    padding: 0 1rem 2rem;
    animation: sipresIn 0.75s 0.08s ease-out both;
}
.sipres-panel {
    max-width: 28rem;
    margin: 0 auto;
    background: #fbfcfb;
    border: 1px solid rgba(20, 83, 45, 0.08);
    border-radius: 1.35rem 1.35rem 1.1rem 1.1rem;
    padding: 1.5rem 1.35rem 1.35rem;
    box-shadow: 0 18px 40px -28px rgba(10, 41, 24, 0.45);
}

@keyframes sipresIn {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: translateY(0); }
}

.sipres-alert {
    margin-bottom: 1rem;
    border-radius: 0.75rem;
    padding: 0.7rem 0.85rem;
    font-size: 0.8125rem;
    line-height: 1.4;
}
.sipres-alert--ok {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #065f46;
}
.sipres-alert--err {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

.sipres-form { display: grid; gap: 1rem; }
.sipres-field label {
    display: block;
    margin-bottom: 0.4rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: #3f5a4a;
}
.sipres-field-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.4rem;
}
.sipres-field-head label { margin-bottom: 0; }
.sipres-field-head a {
    font-size: 0.75rem;
    font-weight: 600;
    color: #15803d;
    text-decoration: none;
}
.sipres-field-head a:hover { text-decoration: underline; }

.sipres-field input[type="email"],
.sipres-field .password-toggle input {
    width: 100%;
    border-radius: 0.8rem;
    border: 1px solid #d5e0d8;
    background: #fff;
    padding: 0.72rem 0.95rem;
    font-size: 0.9375rem;
    color: #122018;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
    font-family: inherit;
}
.sipres-field .password-toggle input { padding-right: 2.75rem; }
.sipres-field input:focus,
.sipres-field .password-toggle input:focus {
    border-color: #16a34a;
    box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.18);
}

.sipres-check {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    color: #4b6354;
    user-select: none;
}
.sipres-check input {
    width: 1rem;
    height: 1rem;
    accent-color: #15803d;
}

.sipres-hint {
    margin: 0.4rem 0 0;
    font-size: 0.7rem;
    color: #6b7f72;
}

.sipres-submit {
    width: 100%;
    margin-top: 0.15rem;
    border: 0;
    border-radius: 0.85rem;
    padding: 0.85rem 1rem;
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: #fff;
    background: linear-gradient(180deg, #1a9a55 0%, #15803d 100%);
    cursor: pointer;
    transition: filter 0.15s, transform 0.12s;
}
.sipres-submit:hover { filter: brightness(1.05); }
.sipres-submit:active { transform: translateY(1px); }

.sipres-register {
    margin-top: 1.1rem;
    text-align: center;
}
.sipres-register a {
    font-size: 0.9rem;
    font-weight: 700;
    color: #15803d;
    text-decoration: none;
}
.sipres-register a:hover { text-decoration: underline; }
.sipres-register p {
    margin: 0.35rem 0 0;
    font-size: 0.72rem;
    color: #7a8d81;
}

.sipres-admin {
    margin-top: 1.25rem;
    padding-top: 1.15rem;
    border-top: 1px solid #e4ebe5;
}
.sipres-admin a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    width: 100%;
    border-radius: 0.8rem;
    border: 1px solid #cfdad2;
    background: #fff;
    padding: 0.72rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #2a4033;
    text-decoration: none;
    transition: background 0.15s, border-color 0.15s;
}
.sipres-admin a:hover {
    background: #f3f7f4;
    border-color: #b4c7ba;
}
.sipres-admin p {
    margin: 0.45rem 0 0;
    text-align: center;
    font-size: 0.7rem;
    color: #7a8d81;
}

.sipres-foot {
    margin: 1.5rem auto 0;
    max-width: 28rem;
    text-align: center;
    font-size: 0.7rem;
    color: #7a8d81;
    line-height: 1.6;
}
.sipres-foot a {
    font-weight: 600;
    color: #15803d;
    text-decoration: none;
}
.sipres-foot a:hover { text-decoration: underline; }
.sipres-foot .dev-label {
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-size: 0.65rem;
}
.sipres-foot .sep { margin: 0 0.4rem; color: #c5d0c8; }

@media (min-width: 720px) {
    .sipres-shell {
        grid-template-columns: minmax(280px, 0.95fr) minmax(360px, 1.05fr);
        grid-template-rows: 1fr;
    }
    .sipres-hero {
        min-height: 100dvh;
        justify-content: flex-end;
        padding: 3rem 3rem 3.25rem 3.5rem;
    }
    .sipres-hero-photo { object-position: 48% 40%; }
    .sipres-hero-inner { margin: 0; max-width: 26rem; }
    .sipres-title { max-width: none; font-size: 2.5rem; }
    .sipres-body {
        margin-top: 0;
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding: 2.5rem 2.5rem 2.5rem 1.5rem;
    }
    .sipres-panel {
        border-radius: 1.25rem;
        padding: 2rem 1.75rem 1.6rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .sipres-hero-photo,
    .sipres-hero-inner,
    .sipres-body { animation: none !important; }
}

.sipres-lead {
    margin: 0 0 1.1rem;
    font-size: 0.875rem;
    line-height: 1.45;
    color: #5a7263;
}
.sipres-panel-title {
    margin: 0 0 0.35rem;
    font-family: Outfit, sans-serif;
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #14532d;
}
.sipres-back {
    display: inline-block;
    margin-top: 1.1rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: #15803d;
    text-decoration: none;
}
.sipres-back:hover { text-decoration: underline; }
