@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
    --gd-auth-bg: #f8fafc;
    --gd-auth-surface: #ffffff;
    --gd-auth-text: #1d1719;
    --gd-auth-muted: #667085;
    --gd-auth-border: #e4e7ec;
    --gd-auth-soft: #f2f4f7;
    --gd-auth-primary: #0797d5;
    --gd-auth-primary-dark: #057db4;
    --gd-auth-accent: #ffd100;
    --gd-auth-accent-soft: #fff7cc;
    --gd-auth-danger: #b42318;
    --gd-auth-danger-bg: #fef3f2;
    --gd-auth-shadow: 0 18px 45px rgba(29, 23, 25, 0.12);
}

body.gd-auth-page,
body.gd-auth-page #wrapper,
body.gd-auth-page .auth-main,
body.gd-auth-page .vertical-align-wrap,
body.gd-auth-page .vertical-align-middle {
    min-height: 100vh;
    background: var(--gd-auth-bg) !important;
    color: var(--gd-auth-text);
    font-family: 'Outfit', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 14px;
}

body.gd-auth-page::before,
body.gd-auth-page::after,
body.gd-auth-page .auth-main::before,
body.gd-auth-page .auth-main::after {
    display: none !important;
}

.gd-auth-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 420px;
}

.gd-auth-panel {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 40px 48px;
    background: #ffffff;
    border-right: 1px solid var(--gd-auth-border);
}

.gd-auth-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.gd-auth-logo {
    max-height: 44px;
    max-width: 190px;
    object-fit: contain;
}

.gd-auth-brand-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.gd-auth-company {
    margin: 0;
    color: var(--gd-auth-text);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
}

.gd-auth-product {
    margin: 0;
    color: var(--gd-auth-primary);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
}

.gd-auth-copy {
    max-width: 560px;
}

.gd-auth-kicker {
    margin: 0 0 12px;
    color: var(--gd-auth-primary);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.gd-auth-kicker::before {
    content: '';
    display: inline-block;
    width: 28px;
    height: 4px;
    margin-right: 10px;
    border-radius: 99px;
    background: var(--gd-auth-accent);
    vertical-align: middle;
}

.gd-auth-title {
    margin: 0;
    max-width: 620px;
    color: var(--gd-auth-text);
    font-size: 32px;
    font-weight: 700;
    line-height: 1.15;
}

.gd-auth-subtitle {
    margin: 14px 0 0;
    max-width: 520px;
    color: var(--gd-auth-muted);
    font-size: 15px;
    font-weight: 400;
    line-height: 1.65;
}

.gd-auth-footer {
    max-width: 640px;
    color: #98a2b3;
    font-size: 12px;
    line-height: 1.5;
}

.gd-auth-form-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px;
}

.gd-auth-card {
    width: 100%;
    max-width: 380px;
    padding: 28px;
    background: var(--gd-auth-surface);
    border: 1px solid var(--gd-auth-border);
    border-radius: 12px;
    box-shadow: var(--gd-auth-shadow);
    position: relative;
    overflow: hidden;
}

.gd-auth-card::before {
    content: '';
    position: absolute;
    inset: 0 0 auto;
    height: 4px;
    background: linear-gradient(90deg, var(--gd-auth-accent) 0 34%, var(--gd-auth-primary) 34% 100%);
}

.gd-auth-card-logo {
    display: none;
    margin-bottom: 20px;
}

.gd-auth-card-logo img {
    max-height: 38px;
    max-width: 170px;
    object-fit: contain;
}

.gd-auth-card h1 {
    margin: 0;
    color: var(--gd-auth-text);
    font-size: 22px;
    font-weight: 700;
    line-height: 1.25;
}

.gd-auth-card .gd-auth-card-subtitle {
    margin: 8px 0 22px;
    color: var(--gd-auth-muted);
    font-size: 13px;
    line-height: 1.55;
}

.gd-auth-alert {
    margin: 0 0 16px;
    padding: 10px 12px;
    border: 1px solid #fecdca;
    border-radius: 8px;
    background: var(--gd-auth-danger-bg);
    color: var(--gd-auth-danger);
    font-size: 13px;
    line-height: 1.45;
}

.gd-auth-field {
    margin-bottom: 16px;
}

.gd-auth-label {
    display: block;
    margin-bottom: 6px;
    color: #344054;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.3;
}

.gd-auth-input {
    width: 100%;
    height: 42px;
    padding: 9px 12px;
    border: 1px solid var(--gd-auth-border);
    border-radius: 8px;
    background: #fff;
    color: var(--gd-auth-text);
    font-family: inherit;
    font-size: 14px;
    line-height: 1.4;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.gd-auth-input:focus {
    border-color: var(--gd-auth-primary);
    box-shadow: 0 0 0 3px rgba(7, 151, 213, 0.14);
    outline: none;
}

.gd-auth-input::placeholder {
    color: #98a2b3;
}

.gd-auth-error {
    margin: 6px 0 0;
    color: var(--gd-auth-danger);
    font-size: 12px;
}

.gd-auth-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 4px 0 18px;
}

.gd-auth-check {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    color: var(--gd-auth-muted);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
}

.gd-auth-check input {
    width: 15px;
    height: 15px;
    accent-color: var(--gd-auth-primary);
}

.gd-auth-submit {
    width: 100%;
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 0;
    border-radius: 8px;
    background: var(--gd-auth-primary);
    color: #fff;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.15s ease;
}

.gd-auth-submit:hover {
    background: var(--gd-auth-primary-dark);
}

.gd-auth-submit:active {
    transform: translateY(1px);
}

.gd-auth-submit[disabled] {
    cursor: wait;
    opacity: 0.75;
}

.gd-auth-help {
    margin: 18px 0 0;
    color: #98a2b3;
    font-size: 12px;
    line-height: 1.5;
    text-align: center;
}

@media (max-width: 991.98px) {
    .gd-auth-shell {
        grid-template-columns: 1fr;
    }

    .gd-auth-panel {
        display: none;
    }

    .gd-auth-form-wrap {
        min-height: 100vh;
        padding: 24px;
    }

    .gd-auth-card-logo {
        display: block;
    }
}
