.karfogen-signin {
    margin: 0;
    min-height: 100dvh;
    min-height: calc(var(--vh, 1vh) * 100);
    display: grid;
    grid-template-columns: 3fr 2fr;
    background: #12100D;
    color: #EAE4D9;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

.karfogen-field-zone {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 48px 7vw;
    overflow: hidden;
    background:
        repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.008) 0 2px, transparent 2px 6px),
        repeating-linear-gradient(-45deg, rgba(0, 0, 0, 0.14) 0 2px, transparent 2px 6px),
        radial-gradient(1100px 640px at 42% 118%, rgba(217, 107, 47, 0.16), rgba(217, 107, 47, 0.04) 46%, transparent 68%),
        #141210;
}

.karfogen-topline {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 7vw 0;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #6F6759;
}

.karfogen-wordmark {
    font-size: clamp(44px, 6.4vw, 92px);
    font-weight: 800;
    letter-spacing: 0.04em;
    line-height: 1;
    color: #EAE4D9;
    user-select: none;
}

.karfogen-wordmark .karfogen-ember-o {
    background: linear-gradient(135deg, #B4471E 0%, #D96B2F 45%, #F0894A 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: #D96B2F;
    animation: karfogen-signin-breath 4s ease-in-out infinite;
}

.karfogen-tagline {
    margin-top: 22px;
    max-width: 46ch;
    font-size: 15px;
    line-height: 1.65;
    color: #A29786;
}

.karfogen-foot {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 0 7vw 20px;
    font-size: 12px;
    color: #6F6759;
}

.karfogen-foot-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #7CA982;
    animation: karfogen-signin-breath 4s ease-in-out infinite;
}

.karfogen-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 48px clamp(28px, 4vw, 64px);
    background: #1D1A17;
    border-left: 1px solid #2C2823;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.karfogen-panel-inner {
    width: 100%;
    max-width: 360px;
    margin: 0 auto;
}

.karfogen-panel-title {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: #EAE4D9;
    margin: 0 0 6px;
}

.karfogen-panel-sub {
    font-size: 13px;
    color: #A29786;
    margin: 0 0 28px;
}

.karfogen-field {
    margin-bottom: 18px;
}

.karfogen-label {
    display: block;
    margin-bottom: 7px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #A29786;
}

.karfogen-input {
    width: 100%;
    box-sizing: border-box;
    min-height: 46px;
    padding: 12px 14px;
    font-size: 14px;
    color: #EAE4D9;
    background: #14110E;
    border: 1px solid #2C2823;
    border-radius: 8px;
    outline: none;
    transition: border-color 0.15s ease-out, box-shadow 0.15s ease-out;
}

.karfogen-input::placeholder {
    color: #5A5346;
}

.karfogen-input:focus {
    border-color: rgba(217, 107, 47, 0.6);
    box-shadow: 0 0 0 3px rgba(217, 107, 47, 0.18);
}

.karfogen-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    width: 100%;
    box-sizing: border-box;
    min-height: 46px;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 700;
    font-family: inherit;
    border-radius: 8px;
    border: 0;
    cursor: pointer;
    transition: background-color 0.15s ease-out, transform 0.15s ease-out, box-shadow 0.15s ease-out;
}

.karfogen-btn:active {
    transform: scale(0.97);
}

.karfogen-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.karfogen-btn-primary {
    margin-top: 6px;
    color: #17100A;
    background: #D96B2F;
    box-shadow: 0 8px 22px rgba(217, 107, 47, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.karfogen-btn-primary:hover {
    background: #E67E42;
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(217, 107, 47, 0.36), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.karfogen-btn-primary:active {
    transform: translateY(0) scale(0.97);
}

.karfogen-btn-primary:focus-visible,
.karfogen-btn-tg:focus-visible,
.karfogen-input:focus-visible {
    outline: 2px solid rgba(240, 137, 74, 0.65);
    outline-offset: 2px;
}

.karfogen-divider {
    height: 1px;
    margin: 22px 0;
    background: #2C2823;
}

.karfogen-btn-tg {
    color: #EAE4D9;
    background: transparent;
    border: 1px solid #3B352D;
}

.karfogen-btn-tg:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: #4A4238;
}

.karfogen-tg-region {
    margin-top: 14px;
    text-align: center;
}

.karfogen-tg-hint {
    font-size: 13px;
    color: #A29786;
    margin: 0 0 8px;
}

.karfogen-tg-open {
    font-size: 13px;
    color: #F0894A;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.karfogen-tg-open:hover {
    color: #E67E42;
}

.karfogen-secure-note {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 26px;
    padding-top: 18px;
    border-top: 1px solid #2C2823;
    font-size: 11.5px;
    color: #6F6759;
}

.karfogen-secure-note svg {
    flex: none;
    color: #6F6759;
}

@keyframes karfogen-signin-breath {
    0%, 100% { opacity: 0.65; }
    50%      { opacity: 1; }
}

@media (max-width: 900px) {
    .karfogen-signin {
        grid-template-columns: 1fr;
    }

    .karfogen-field-zone {
        min-height: 220px;
        justify-content: flex-end;
        padding: 72px 24px 32px;
    }

    .karfogen-topline {
        padding: 16px 24px 0;
    }

    .karfogen-wordmark {
        font-size: clamp(36px, 11vw, 56px);
    }

    .karfogen-tagline {
        margin-top: 12px;
        font-size: 13.5px;
    }

    .karfogen-foot {
        display: none;
    }

    .karfogen-panel {
        border-left: none;
        border-top: 1px solid #2C2823;
        padding: 36px 24px 48px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .karfogen-wordmark .karfogen-ember-o,
    .karfogen-foot-dot {
        animation: none;
    }

    .karfogen-btn,
    .karfogen-input {
        transition: none;
    }
}
