:root {
    --rappot-bg: #f5f7fb;
    --rappot-surface: #ffffff;
    --rappot-surface-2: #0f172a;
    --rappot-text: #0f172a;
    --rappot-text-soft: #64748b;
    --rappot-border: #e2e8f0;
    --rappot-primary: #2563eb;
    --rappot-primary-hover: #1d4ed8;
    --rappot-success-bg: #ecfdf3;
    --rappot-success-border: #86efac;
    --rappot-success-text: #166534;
    --rappot-error-bg: #fef2f2;
    --rappot-error-border: #fca5a5;
    --rappot-error-text: #991b1b;
    --rappot-shadow: 0 20px 50px rgba(15, 23, 42, 0.08);
    --rappot-radius-xl: 24px;
    --rappot-radius-lg: 18px;
    --rappot-radius-md: 12px;
    --rappot-radius-sm: 10px;
}

body.rappot-auth-page {
    margin: 0;
    background: linear-gradient(180deg, #eff6ff 0%, #f8fafc 55%, #f5f7fb 100%);
    color: var(--rappot-text);
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body.rappot-auth-page * {
    box-sizing: border-box;
}

.rappot-auth {
    min-height: 100vh;
    padding: 32px 20px;
}

.rappot-auth__inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 28px;
    align-items: stretch;
}

.rappot-auth__aside {
    background:
        radial-gradient(circle at top left, rgba(255,255,255,0.18), transparent 32%),
        linear-gradient(135deg, #0f172a 0%, #1e3a8a 55%, #2563eb 100%);
    color: #fff;
    border-radius: var(--rappot-radius-xl);
    padding: 42px;
    box-shadow: var(--rappot-shadow);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 680px;
}

.rappot-auth__brand {
    margin-bottom: 36px;
}

.rappot-auth__brand-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    color: #fff;
}

.rappot-auth__brand-name {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.rappot-auth__intro-title {
    margin: 0 0 14px;
    font-size: 40px;
    line-height: 1.08;
    letter-spacing: -0.03em;
    font-weight: 800;
}

.rappot-auth__intro-text {
    margin: 0;
    max-width: 540px;
    font-size: 16px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.86);
}

.rappot-auth__features {
    list-style: none;
    margin: 42px 0 0;
    padding: 0;
    display: grid;
    gap: 14px;
}

.rappot-auth__features li {
    position: relative;
    padding-left: 28px;
    color: rgba(255, 255, 255, 0.92);
    line-height: 1.5;
}

.rappot-auth__features li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 8px;
    width: 12px;
    height: 12px;
    border-radius: 999px;
    background: #93c5fd;
    box-shadow: 0 0 0 5px rgba(147, 197, 253, 0.18);
}

.rappot-auth__main {
    display: flex;
    align-items: center;
    justify-content: center;
}

.rappot-auth__card {
    width: 100%;
    max-width: 560px;
    background: var(--rappot-surface);
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: var(--rappot-radius-xl);
    padding: 36px;
    box-shadow: var(--rappot-shadow);
}

.rappot-auth__header {
    margin-bottom: 22px;
}

.rappot-auth__title {
    margin: 0 0 10px;
    font-size: 34px;
    line-height: 1.1;
    letter-spacing: -0.03em;
    font-weight: 800;
    color: var(--rappot-text);
}

.rappot-auth__subtitle {
    margin: 0;
    color: var(--rappot-text-soft);
    line-height: 1.7;
    font-size: 15px;
}

.rappot-auth__alert {
    border-radius: var(--rappot-radius-md);
    padding: 14px 16px;
    margin-bottom: 18px;
    font-size: 14px;
    line-height: 1.6;
}

.rappot-auth__alert--success {
    background: var(--rappot-success-bg);
    border: 1px solid var(--rappot-success-border);
    color: var(--rappot-success-text);
}

.rappot-auth__alert--error {
    background: var(--rappot-error-bg);
    border: 1px solid var(--rappot-error-border);
    color: var(--rappot-error-text);
}

.rappot-auth__error-list {
    margin: 0;
    padding-left: 18px;
}

.rappot-auth__body {
    margin-top: 8px;
}

.rappot-auth-form {
    width: 100%;
}

.rappot-auth-form__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.rappot-auth-form__group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 18px;
}

.rappot-auth-form__label {
    font-size: 14px;
    font-weight: 600;
    color: var(--rappot-text);
}

.rappot-auth-form__input {
    width: 100%;
    min-height: 48px;
    padding: 0 14px;
    border: 1px solid var(--rappot-border);
    border-radius: var(--rappot-radius-sm);
    background: #fff;
    color: var(--rappot-text);
    font-size: 15px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
    outline: none;
}

.rappot-auth-form__input::placeholder {
    color: #94a3b8;
}

.rappot-auth-form__input:focus {
    border-color: rgba(37, 99, 235, 0.7);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.rappot-auth-form__row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 6px 0 20px;
}

.rappot-auth-form__row--between {
    justify-content: space-between;
}

.rappot-auth-form__checkbox {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--rappot-text-soft);
    font-size: 14px;
    cursor: pointer;
}

.rappot-auth-form__checkbox input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: var(--rappot-primary);
}

.rappot-auth-form__actions {
    margin-top: 8px;
}

.rappot-auth-form__submit {
    appearance: none;
    border: 0;
    width: 100%;
    min-height: 50px;
    border-radius: 14px;
    background: var(--rappot-primary);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.01em;
    cursor: pointer;
    transition: transform 0.15s ease, background-color 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 12px 24px rgba(37, 99, 235, 0.18);
}

.rappot-auth-form__submit:hover {
    background: var(--rappot-primary-hover);
}

.rappot-auth-form__submit:active {
    transform: translateY(1px);
}

.rappot-auth-form__footer {
    margin-top: 18px;
    text-align: center;
    color: var(--rappot-text-soft);
    font-size: 14px;
    line-height: 1.6;
}

.rappot-auth-form__footer p {
    margin: 0;
}

.rappot-auth-form__footer a {
    color: var(--rappot-primary);
    text-decoration: none;
    font-weight: 600;
}

.rappot-auth-form__footer a:hover {
    text-decoration: underline;
}


.rappot-auth-form__password-hint {
    margin-top: 8px;
    font-size: 13px;
    line-height: 1.5;
    color: var(--rappot-text-soft);
}

.rappot-auth-form__password-hint.is-error {
    color: var(--rappot-error-text);
}

.rappot-auth-form__password-hint.is-success {
    color: var(--rappot-success-text);
}

.rappot-auth-form__submit.is-loading {
    opacity: 0.85;
    cursor: wait;
}



@media (max-width: 1024px) {
    .rappot-auth__inner {
        grid-template-columns: 1fr;
    }

    .rappot-auth__aside {
        min-height: auto;
        padding: 34px;
    }

    .rappot-auth__main {
        align-items: stretch;
    }

    .rappot-auth__card {
        max-width: 100%;
    }
}

@media (max-width: 640px) {
    .rappot-auth {
        padding: 16px;
    }

    .rappot-auth__aside,
    .rappot-auth__card {
        padding: 24px;
        border-radius: 20px;
    }

    .rappot-auth__intro-title {
        font-size: 30px;
    }

    .rappot-auth__title {
        font-size: 28px;
    }

    .rappot-auth-form__grid {
        grid-template-columns: 1fr;
        gap: 0;
    }
}


