@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Inter:wght@400;500;600;700&display=swap');

:root {
    --of-a: #4f46e5;
    --of-a2: #6366f1;
    --of-text: #3f3f46;
    --of-muted: #71717a;
    --of-border: #e4e4e7;
    --of-surface: #ffffff;
    --of-page: #f4f4f5;
    --of-font: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--of-font);
    background-color: var(--of-page);
    color: var(--of-text);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
}

.of-auth-shell {
    min-height: 100vh;
    background: var(--of-page);
    padding: 28px 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.of-auth-grid {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    min-height: calc(100vh - 56px);
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    border-radius: 20px;
    overflow: hidden;
    background: var(--of-surface);
    border: 1px solid var(--of-border);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04), 0 20px 50px -18px rgba(0, 0, 0, 0.1);
}

.of-auth-brand {
    position: relative;
    color: var(--of-text);
    background: #fafafa;
    padding: 40px 40px 44px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-right: 1px solid #f4f4f5;
}

.of-brand-top {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.of-brand-logo {
    display: inline-block;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
    text-decoration: none;
}

.of-brand-logo img {
    height: 52px;
    width: auto;
    object-fit: contain;
    display: block;
}

.of-meta-partner-logo {
    margin-top: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: 999px;
    background: #234267;
}

.of-meta-partner-logo img {
    display: block;
    width: 200px;
    max-width: min(100%, 200px);
    height: 26px;
    object-fit: contain;
}

.of-title {
    margin-top: 24px;
    margin-bottom: 10px;
    font-size: 1.75rem;
    line-height: 1.2;
    font-weight: 700;
    color: var(--of-text);
    letter-spacing: -0.02em;
}

@media (min-width: 640px) {
    .of-title {
        font-size: 2.05rem;
    }
}

.of-subtitle {
    margin: 0;
    max-width: 100%;
    font-size: 14.5px;
    line-height: 1.6;
    color: var(--of-muted);
}

.of-kpi-grid {
    margin-top: 22px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.of-kpi {
    border: 1px solid var(--of-border);
    border-radius: 14px;
    padding: 12px 10px;
    background: var(--of-surface);
    text-align: center;
}

.of-kpi-ico {
    display: flex;
    justify-content: center;
    margin-bottom: 6px;
    color: var(--of-a);
}

.of-kpi h4 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--of-text);
}

.of-kpi p {
    margin: 4px 0 0;
    font-size: 10px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--of-muted);
    font-weight: 600;
}

.of-feature-grid {
    margin-top: 18px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.of-feature {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    border-radius: 14px;
    border: 1px solid #f4f4f5;
    background: var(--of-surface);
    padding: 12px;
}

.of-feature-ico {
    flex-shrink: 0;
    color: var(--of-a);
    margin-top: 1px;
}

.of-feature strong {
    display: block;
    font-size: 13px;
    color: var(--of-text);
    margin-bottom: 3px;
    font-weight: 700;
}

.of-feature span {
    font-size: 11.5px;
    line-height: 1.45;
    color: var(--of-muted);
}

.of-quote {
    margin-top: 14px;
    border: 1px solid var(--of-border);
    border-radius: 14px;
    padding: 14px 16px;
    background: linear-gradient(180deg, #ffffff 0%, #fafafa 100%);
}

.of-quote p {
    margin: 0;
    font-size: 12.5px;
    line-height: 1.55;
    color: #52525b;
}

.of-quote::before {
    content: "“";
    display: block;
    font-size: 1.5rem;
    line-height: 1;
    color: #d4d4d8;
    font-family: Georgia, serif;
    margin-bottom: 2px;
}

.of-quote small {
    margin-top: 6px;
    display: block;
    font-size: 11px;
    color: #a1a1aa;
    font-weight: 500;
}

.of-auth-form-wrap {
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 36px 40px;
}

.of-auth-card {
    width: 100%;
    max-width: 420px;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
}

.of-form-head {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    margin-bottom: 18px;
}

.of-form-badge {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.1) 0%, rgba(99, 102, 241, 0.12) 100%);
    color: var(--of-a);
    border: 1px solid rgba(79, 70, 229, 0.2);
}

.of-auth-overline {
    margin: 0;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--of-a);
}

.of-auth-card h2 {
    margin: 3px 0 2px;
    font-size: 1.7rem;
    line-height: 1.15;
    color: var(--of-text);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.of-auth-card .of-auth-desc {
    margin: 0;
    font-size: 13.5px;
    color: var(--of-muted);
}

.of-form-group {
    margin-top: 14px;
}

.of-form-group label {
    display: block;
    margin-bottom: 5px;
    font-size: 13px;
    font-weight: 600;
    color: #52525b;
}

.of-input-wrap {
    position: relative;
}

.of-input-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #a1a1aa;
    pointer-events: none;
    z-index: 1;
    display: flex;
    align-items: center;
}

.of-input-wrap:focus-within .of-input-icon {
    color: var(--of-a);
}

.of-input {
    width: 100%;
    min-height: 44px;
    box-sizing: border-box;
    border: 1px solid var(--of-border);
    border-radius: 12px;
    font-size: 14px;
    font-family: inherit;
    color: var(--of-text);
    background: #ffffff;
    padding: 10px 12px 10px 42px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.of-input.no-icon {
    padding-left: 12px;
}

.of-input::placeholder {
    color: #a1a1aa;
}

.of-input:focus {
    border-color: var(--of-a);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12);
}

.of-input.is-invalid {
    border-color: #ef4444;
    background-color: #fffbfb;
}

.of-input.is-invalid:focus {
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12);
}

.of-password-toggle {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 34px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #a1a1aa;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s, background 0.2s;
}

.of-password-toggle:hover {
    color: #71717a;
    background: #f4f4f5;
}

.of-meta-row {
    margin-top: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.of-remember {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #52525b;
    cursor: pointer;
}

.of-remember input[type="checkbox"] {
    width: 16px;
    height: 16px;
    border-radius: 4px;
    accent-color: var(--of-a);
    cursor: pointer;
}

.of-forgot {
    font-size: 13px;
    color: var(--of-a);
    text-decoration: none;
    font-weight: 600;
}

.of-forgot:hover {
    text-decoration: underline;
}

.of-submit {
    margin-top: 18px;
    width: 100%;
    min-height: 48px;
    border: 0;
    border-radius: 12px;
    padding: 12px 16px;
    background: linear-gradient(180deg, var(--of-a) 0%, #4338ca 100%);
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.of-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(79, 70, 229, 0.3);
}

.of-submit:active {
    transform: translateY(0);
}

.of-signup,
.of-signin {
    margin-top: 18px;
    text-align: center;
    font-size: 13px;
    color: var(--of-muted);
}

.of-signup a,
.of-signin a {
    color: var(--of-a);
    font-weight: 600;
    text-decoration: none;
}

.of-signup a:hover,
.of-signin a:hover {
    text-decoration: underline;
}

.of-alert {
    margin-top: 14px;
    margin-bottom: 6px;
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid #bbf7d0;
    background: #f0fdf4;
    color: #166534;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.of-alert-danger {
    border-color: #fecaca;
    background: #fef2f2;
    color: #b91c1c;
}

.of-error {
    margin-top: 5px;
    font-size: 12px;
    color: #dc2626;
    font-weight: 500;
}

.of-mobile-logo {
    display: none;
    margin-bottom: 12px;
    text-align: center;
}

.of-mobile-logo img {
    height: 44px;
    width: auto;
    object-fit: contain;
    margin: 0 auto;
}

@media (max-width: 992px) {
    .of-auth-grid {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .of-auth-brand {
        display: none;
    }

    .of-auth-form-wrap {
        padding: 24px 20px 36px;
    }

    .of-auth-card {
        max-width: 460px;
    }

    .of-mobile-logo {
        display: block;
    }

    .of-form-head {
        margin-bottom: 16px;
    }
}
