/**
 * Org HR auth — registration + login shell
 * Distinct from LMS forest-green auth: teal/slate HR atmosphere.
 */

:root {
    --org-ink: #0b1220;
    --org-muted: #5b6b7c;
    --org-line: #d7e0ea;
    --org-surface: #ffffff;
    --org-accent: #0f766e;
    --org-accent-deep: #115e59;
    --org-accent-soft: #ccfbf1;
    --org-warn: #b45309;
    --org-danger: #b91c1c;
    --org-radius: 18px;
    --org-shadow: 0 24px 60px rgba(11, 18, 32, 0.12);
    --org-font: "Sora", system-ui, sans-serif;
    --org-display: "Fraunces", Georgia, serif;
}

* { box-sizing: border-box; }

.org-auth {
    margin: 0;
    min-height: 100vh;
    font-family: var(--org-font);
    color: var(--org-ink);
    background:
        radial-gradient(ellipse 80% 60% at 10% 20%, rgba(15, 118, 110, 0.16), transparent 55%),
        radial-gradient(ellipse 70% 50% at 90% 80%, rgba(15, 23, 42, 0.08), transparent 50%),
        linear-gradient(160deg, #e8f4f2 0%, #f3f6f9 42%, #eef2f6 100%);
}

.org-auth-skip {
    position: absolute;
    left: -9999px;
    top: 0.75rem;
    z-index: 20;
    padding: 0.5rem 0.85rem;
    background: #fff;
    border-radius: 8px;
    color: var(--org-accent);
    font-weight: 600;
}
.org-auth-skip:focus { left: 0.75rem; }

.org-auth-shell {
    display: grid;
    min-height: 100vh;
    grid-template-columns: 1fr;
}

@media (min-width: 960px) {
    .org-auth-shell {
        grid-template-columns: minmax(320px, 0.95fr) minmax(380px, 1.05fr);
    }
}

/* Brand column */
.org-auth-brand {
    position: relative;
    padding: 1.5rem 1.5rem 1.25rem;
    color: #ecfeff;
    background:
        linear-gradient(155deg, rgba(15, 118, 110, 0.92), rgba(15, 23, 42, 0.88)),
        url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    overflow: hidden;
    animation: orgBrandIn 0.7s ease both;
}

@media (min-width: 960px) {
    .org-auth-brand {
        padding: 2.25rem 2.5rem;
        display: flex;
        flex-direction: column;
        min-height: 100vh;
    }
}

.org-auth-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    text-decoration: none;
    color: inherit;
    margin-bottom: 1.75rem;
}
.org-auth-logo__mark {
    width: 2rem;
    height: 2rem;
    border-radius: 10px;
    background: linear-gradient(135deg, #5eead4, #0d9488);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}
.org-auth-logo__text {
    font-family: var(--org-display);
    font-weight: 700;
    font-size: 1.35rem;
    letter-spacing: -0.02em;
}
.org-auth-logo__text span { color: #5eead4; }

.org-auth-kicker {
    margin: 0 0 0.55rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #99f6e4;
}

.org-auth-brand__copy h1 {
    margin: 0 0 0.85rem;
    font-family: var(--org-display);
    font-size: clamp(1.55rem, 2.6vw, 2.15rem);
    font-weight: 700;
    line-height: 1.18;
    letter-spacing: -0.02em;
    max-width: 18ch;
}

.org-auth-lead {
    margin: 0;
    max-width: 36ch;
    font-size: 0.95rem;
    line-height: 1.55;
    color: rgba(236, 254, 255, 0.82);
}

.org-auth-rail {
    list-style: none;
    margin: 2rem 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.org-auth-rail__item {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    opacity: 0.55;
    transition: opacity 0.25s ease, transform 0.25s ease;
}
.org-auth-rail__item.is-current,
.org-auth-rail__item.is-done {
    opacity: 1;
}
.org-auth-rail__item.is-current {
    transform: translateX(4px);
}

.org-auth-rail__num {
    flex: 0 0 1.7rem;
    width: 1.7rem;
    height: 1.7rem;
    border-radius: 999px;
    display: grid;
    place-items: center;
    font-size: 0.75rem;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
}
.org-auth-rail__item.is-done .org-auth-rail__num {
    background: #5eead4;
    color: #0f172a;
    border-color: transparent;
}
.org-auth-rail__item.is-current .org-auth-rail__num {
    background: #fff;
    color: var(--org-accent-deep);
    border-color: transparent;
}

.org-auth-rail__item strong {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
}
.org-auth-rail__item small {
    display: block;
    font-size: 0.75rem;
    color: rgba(236, 254, 255, 0.7);
}

.org-auth-points {
    list-style: none;
    margin: 2rem 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.org-auth-points li {
    display: flex;
    gap: 0.65rem;
    align-items: flex-start;
    font-size: 0.9rem;
    line-height: 1.4;
    color: rgba(236, 254, 255, 0.9);
}
.org-auth-points i {
    color: #5eead4;
    margin-top: 0.15rem;
}

.org-auth-brand__foot {
    margin-top: auto;
    padding-top: 1.75rem;
    font-size: 0.82rem;
    color: rgba(236, 254, 255, 0.7);
}
.org-auth-brand__foot a {
    color: #99f6e4;
    font-weight: 600;
}

/* Form panel */
.org-auth-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 1.15rem 2.5rem;
    animation: orgPanelIn 0.55s ease 0.08s both;
}

.org-auth-card {
    width: 100%;
    max-width: 480px;
    background: var(--org-surface);
    border: 1px solid var(--org-line);
    border-radius: 24px;
    padding: 1.5rem 1.35rem 1.35rem;
    box-shadow: var(--org-shadow);
}

@media (min-width: 480px) {
    .org-auth-card { padding: 1.85rem 1.75rem 1.5rem; }
}

.org-auth-card__head {
    margin-bottom: 1.25rem;
}
.org-auth-card__head h2 {
    margin: 0 0 0.4rem;
    font-family: var(--org-display);
    font-size: 1.55rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}
.org-auth-card__head p {
    margin: 0;
    color: var(--org-muted);
    font-size: 0.9rem;
    line-height: 1.5;
}

.org-auth-progress {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1.15rem;
}
.org-auth-progress__bar {
    flex: 1;
    height: 6px;
    border-radius: 999px;
    background: #e8eef4;
    overflow: hidden;
}
.org-auth-progress__fill {
    height: 100%;
    width: 25%;
    border-radius: inherit;
    background: linear-gradient(90deg, #14b8a6, #0f766e);
    transition: width 0.35s ease;
}
.org-auth-progress__label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--org-muted);
    white-space: nowrap;
}

.org-auth-alert {
    padding: 0.75rem 0.95rem;
    border-radius: 12px;
    font-size: 0.88rem;
    line-height: 1.45;
    margin-bottom: 1rem;
}
.org-auth-alert--error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}
.org-auth-alert--info {
    background: #f0fdfa;
    border: 1px solid #99f6e4;
    color: #115e59;
}

.org-auth-steps {
    position: relative;
}
.org-auth-step {
    display: none;
    animation: orgStepIn 0.35s ease both;
}
.org-auth-step.is-active {
    display: block;
}

.org-auth-paths {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.org-auth-path {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 0.85rem;
    align-items: center;
    width: 100%;
    text-align: left;
    padding: 1rem 1.05rem;
    border: 1px solid var(--org-line);
    border-radius: 16px;
    background: #f8fafc;
    color: inherit;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.org-auth-path:hover,
.org-auth-path:focus-visible {
    border-color: var(--org-accent);
    background: #fff;
    box-shadow: 0 10px 28px rgba(15, 118, 110, 0.12);
    transform: translateY(-2px);
    outline: none;
}
.org-auth-path__icon {
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: var(--org-accent-soft);
    color: var(--org-accent-deep);
    font-size: 1.15rem;
}
.org-auth-path strong {
    display: block;
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 0.15rem;
}
.org-auth-path span {
    display: block;
    font-size: 0.8rem;
    color: var(--org-muted);
    line-height: 1.4;
}
.org-auth-path i.bi-chevron-right {
    color: var(--org-muted);
}

.org-auth-path--link {
    text-decoration: none;
}

.org-auth-field {
    margin-bottom: 0.95rem;
}
.org-auth-field label {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 0.8rem;
    font-weight: 600;
}
.org-auth-field input {
    width: 100%;
    padding: 0.72rem 0.95rem;
    border: 1px solid var(--org-line);
    border-radius: 12px;
    font: inherit;
    font-size: 0.95rem;
    background: #fff;
    color: var(--org-ink);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.org-auth-field input:focus {
    outline: none;
    border-color: var(--org-accent);
    box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.15);
}
.org-auth-field small {
    display: block;
    margin-top: 0.3rem;
    font-size: 0.75rem;
    color: var(--org-muted);
}

.org-auth-field--pw {
    position: relative;
}
.org-auth-field--pw .auth-pw-toggle {
    position: absolute;
    right: 0.65rem;
    bottom: 0.55rem;
    border: none;
    background: transparent;
    color: var(--org-muted);
    cursor: pointer;
    padding: 0.25rem;
    font-size: 1.05rem;
}

.org-auth-check {
    display: flex;
    gap: 0.65rem;
    align-items: flex-start;
    margin: 0.5rem 0 1rem;
    font-size: 0.85rem;
    line-height: 1.45;
    color: var(--org-muted);
}
.org-auth-check input {
    margin-top: 0.2rem;
    accent-color: var(--org-accent);
}

.org-auth-review {
    background: #f8fafc;
    border: 1px solid var(--org-line);
    border-radius: 14px;
    padding: 1rem 1.05rem;
    margin-bottom: 1rem;
}
.org-auth-review dl {
    margin: 0;
    display: grid;
    gap: 0.65rem;
}
.org-auth-review dt {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--org-muted);
}
.org-auth-review dd {
    margin: 0.15rem 0 0;
    font-weight: 600;
    font-size: 0.95rem;
}

.org-auth-plan-note {
    display: flex;
    gap: 0.65rem;
    align-items: flex-start;
    padding: 0.85rem 0.95rem;
    border-radius: 12px;
    background: #fffbeb;
    border: 1px solid #fde68a;
    color: #92400e;
    font-size: 0.82rem;
    line-height: 1.45;
    margin-bottom: 1rem;
}
.org-auth-plan-note i { margin-top: 0.1rem; }

.org-auth-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-top: 0.35rem;
}
.org-auth-actions .spacer { flex: 1; }

.org-auth-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    border: none;
    border-radius: 12px;
    padding: 0.72rem 1.15rem;
    font: inherit;
    font-size: 0.92rem;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.org-auth-btn:active { transform: translateY(1px); }

.org-auth-btn--primary {
    background: linear-gradient(180deg, #14b8a6, var(--org-accent));
    color: #fff;
    box-shadow: 0 10px 24px rgba(15, 118, 110, 0.28);
}
.org-auth-btn--primary:hover {
    background: linear-gradient(180deg, #0d9488, var(--org-accent-deep));
    color: #fff;
}
.org-auth-btn--ghost {
    background: transparent;
    color: var(--org-muted);
    border: 1px solid var(--org-line);
}
.org-auth-btn--ghost:hover {
    background: #f8fafc;
    color: var(--org-ink);
}
.org-auth-btn--block {
    width: 100%;
}

.org-auth-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1rem;
}
.org-auth-link {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--org-accent);
    text-decoration: none;
}
.org-auth-link:hover { text-decoration: underline; }

.org-auth-foot {
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid var(--org-line);
    font-size: 0.85rem;
    color: var(--org-muted);
    text-align: center;
}
.org-auth-foot a {
    color: var(--org-accent-deep);
    font-weight: 600;
    text-decoration: none;
}
.org-auth-foot a:hover { text-decoration: underline; }

.org-auth-remember {
    display: inline-flex;
    align-items: flex-start;
    gap: 0.55rem;
    font-size: 0.85rem;
    color: var(--org-ink);
    cursor: pointer;
}
.org-auth-remember small {
    display: block;
    color: var(--org-muted);
    font-size: 0.75rem;
}

@keyframes orgBrandIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: none; }
}
@keyframes orgPanelIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: none; }
}
@keyframes orgStepIn {
    from { opacity: 0; transform: translateX(10px); }
    to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
    .org-auth-brand,
    .org-auth-panel,
    .org-auth-step,
    .org-auth-path,
    .org-auth-progress__fill {
        animation: none !important;
        transition: none !important;
    }
}
