:root {
    --yeast-auth-primary: #20a99a;
    --yeast-auth-primary-deep: #11776f;
    --yeast-auth-secondary: #4a9b78;
    --yeast-auth-navy: #173541;
    --yeast-auth-ink: #1f3540;
    --yeast-auth-muted: #6c7e85;
    --yeast-auth-line: #dbe9e6;
    --yeast-auth-canvas: #f1f8f6;
}

.logged-out body {
    background: var(--yeast-auth-canvas);
}

.logged-out body #main-wrapper {
    min-height: 100vh;
    padding: 0;
}

.yeast-login-page,
.yeast-login-page * {
    box-sizing: border-box;
}

.yeast-login-page {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 100vh;
    padding: 24px;
    overflow: hidden;
    color: var(--yeast-auth-ink);
    background:
        radial-gradient(circle at 10% 14%, rgba(32, 169, 154, .13), transparent 28%),
        radial-gradient(circle at 88% 84%, rgba(74, 155, 120, .12), transparent 30%),
        linear-gradient(135deg, #f8fcfb 0%, #edf7f4 100%);
}

.yeast-login-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(2px);
    pointer-events: none;
    animation: yeast-auth-float 8s ease-in-out infinite;
}

.yeast-login-orb-one {
    top: -110px;
    inset-inline-start: -80px;
    width: 290px;
    height: 290px;
    background: rgba(32, 169, 154, .10);
}

.yeast-login-orb-two {
    right: -70px;
    bottom: -130px;
    width: 340px;
    height: 340px;
    background: rgba(23, 53, 65, .07);
    animation-delay: -3s;
}

.yeast-login-shell {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(320px, .82fr) minmax(420px, 1.18fr);
    width: min(980px, 100%);
    min-height: 590px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .86);
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 28px 80px rgba(23, 53, 65, .16);
    animation: yeast-auth-enter .65s cubic-bezier(.2, .75, .25, 1) both;
}

.yeast-login-brand {
    position: relative;
    isolation: isolate;
    display: flex;
    overflow: hidden;
    padding: 34px 40px 38px;
    color: #fff;
    background: linear-gradient(145deg, #173541 0%, #164b52 50%, #11776f 100%);
}

.yeast-login-brand::before {
    position: absolute;
    inset: 0;
    z-index: -1;
    content: '';
    opacity: .28;
    background-image:
        linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
    background-size: 34px 34px;
    mask-image: linear-gradient(to bottom, black, transparent 88%);
}

.yeast-brand-content {
    position: relative;
    z-index: 2;
    display: block;
    width: 100%;
}

.yeast-brand-logo {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 210px;
    height: 68px;
    overflow: hidden;
    padding: 0 12px;
    margin-inline: auto;
    border: 1px solid rgba(255,255,255,.66);
    border-radius: 17px;
    background: rgba(255,255,255,.97);
    box-shadow: 0 14px 34px rgba(7, 26, 32, .20);
}

.yeast-brand-logo::after {
    position: absolute;
    inset-inline-end: -1px;
    top: 14px;
    bottom: 14px;
    width: 3px;
    border-radius: 999px;
    content: '';
    background: linear-gradient(var(--yeast-auth-primary), var(--yeast-auth-secondary));
}

.yeast-brand-wordmark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--yeast-auth-navy);
    font-size: 25px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 1.4px;
    white-space: nowrap;
}

.yeast-brand-wordmark strong {
    display: inline-flex;
    align-items: center;
    min-height: 29px;
    padding: 0 8px;
    border-radius: 7px;
    color: #fff;
    background: linear-gradient(135deg, var(--yeast-auth-primary), var(--yeast-auth-primary-deep));
    font-size: .62em;
    font-weight: 800;
    letter-spacing: 1px;
}

.yeast-brand-copy {
    position: relative;
    max-width: 405px;
    margin: 88px 0 27px;
    padding-inline-start: 18px;
}

.yeast-brand-copy::before {
    position: absolute;
    inset-inline-start: 0;
    top: 4px;
    width: 3px;
    height: 40px;
    border-radius: 999px;
    content: '';
    background: linear-gradient(to bottom, #72dfd2, rgba(114,223,210,.12));
}

.yeast-brand-eyebrow {
    display: inline-flex;
    margin-bottom: 13px;
    color: #7ee1d5;
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: 1.45px;
}

.yeast-brand-copy h1 {
    max-width: 390px;
    margin: 0 0 14px;
    color: #fff;
    font-size: clamp(27px, 2.65vw, 33px);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -.65px;
}

.yeast-brand-copy p {
    max-width: 390px;
    margin: 0;
    color: rgba(255,255,255,.75);
    font-size: 12.5px;
    line-height: 1.72;
}

.yeast-brand-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding-inline-start: 18px;
}

.yeast-brand-features span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 11px;
    border: 1px solid rgba(126,225,213,.22);
    border-radius: 999px;
    color: rgba(255,255,255,.88);
    background: rgba(255,255,255,.065);
    font-size: 11px;
    backdrop-filter: blur(8px);
}

.yeast-brand-features i {
    color: #65ddcd;
    font-size: 10px;
}

.yeast-brand-art {
    position: absolute;
    inset-inline-end: -95px;
    bottom: -95px;
    width: 320px;
    height: 320px;
    pointer-events: none;
}

.yeast-art-ring {
    position: absolute;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 50%;
}

.yeast-art-ring-large { inset: 0; }
.yeast-art-ring-small { inset: 58px; border-color: rgba(101,221,205,.28); }

.yeast-art-grid {
    position: absolute;
    inset: 110px;
    border-radius: 30px;
    background: rgba(101,221,205,.14);
    transform: rotate(25deg);
}

.yeast-login-form-panel {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 30px clamp(38px, 5vw, 58px) 24px;
    background: rgba(255,255,255,.98);
}

.yeast-login-toolbar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    min-height: 38px;
    margin-bottom: 8px;
}

.yeast-mobile-logo { display: none; }

.yeast-language-picker {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    height: 38px;
    margin: 0;
    padding-inline-start: 12px;
    border: 1px solid var(--yeast-auth-line);
    border-radius: 10px;
    color: #5b737a;
    background: #f9fcfb;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.yeast-language-picker:focus-within {
    border-color: var(--yeast-auth-primary);
    box-shadow: 0 0 0 3px rgba(32,169,154,.10);
}

.yeast-language-picker > i:first-child { color: var(--yeast-auth-primary-deep); }

.yeast-language-picker select {
    min-width: 92px;
    height: 36px;
    padding: 0 28px 0 2px;
    border: 0;
    outline: 0;
    color: var(--yeast-auth-ink);
    background: transparent;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    appearance: none;
}

[dir="rtl"] .yeast-language-picker select { padding: 0 2px 0 28px; }

.yeast-language-arrow {
    position: absolute;
    inset-inline-end: 11px;
    color: #82979b;
    pointer-events: none;
}

.yeast-login-form-wrap {
    display: flex;
    flex: 1;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    max-width: 470px;
    margin: 0 auto;
}

.yeast-login-heading { margin-bottom: 30px; }

.yeast-login-kicker {
    display: block;
    margin-bottom: 9px;
    color: var(--yeast-auth-primary-deep);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .4px;
}

.yeast-login-heading h2 {
    margin: 0 0 11px;
    color: var(--yeast-auth-navy);
    font-size: clamp(24px, 2.6vw, 30px);
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -.55px;
}

.yeast-login-heading p {
    margin: 0;
    color: var(--yeast-auth-muted);
    font-size: 12.5px;
    line-height: 1.7;
}

.yeast-login-form .form-group { margin-bottom: 16px; }

.yeast-field-group > label {
    display: block;
    margin-bottom: 8px;
    color: #304c57;
    font-size: 12px;
    font-weight: 600;
}

.yeast-field { position: relative; }

.yeast-field .form-control {
    width: 100%;
    height: 48px;
    padding: 0 48px !important;
    border: 1px solid var(--yeast-auth-line) !important;
    border-radius: 12px !important;
    color: var(--yeast-auth-ink);
    background: #fbfdfd !important;
    font-size: 13px;
    box-shadow: none !important;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.yeast-field .form-control:focus {
    border-color: var(--yeast-auth-primary) !important;
    background: #fff !important;
    box-shadow: 0 0 0 4px rgba(32,169,154,.11) !important;
}

.yeast-field-icon {
    position: absolute;
    top: 50%;
    inset-inline-start: 17px;
    z-index: 2;
    color: #7d989c;
    font-size: 17px;
    transform: translateY(-50%);
    transition: color .2s ease;
}

.yeast-field:focus-within .yeast-field-icon { color: var(--yeast-auth-primary); }

.yeast-password-toggle {
    position: absolute;
    top: 50%;
    inset-inline-end: 10px;
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    border-radius: 9px;
    color: #789096;
    background: transparent;
    cursor: pointer;
    transform: translateY(-50%);
    transition: color .2s ease, background .2s ease;
}

.yeast-password-toggle:hover,
.yeast-password-toggle:focus {
    color: var(--yeast-auth-primary-deep);
    background: rgba(32,169,154,.09);
    outline: 0;
}

.yeast-login-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin: 1px 0 20px;
}

.yeast-remember { margin: 0; }
.yeast-remember .custom-control-description { color: #596f77; font-size: 13px; }

.yeast-forgot-link,
.yeast-signup-link a {
    color: var(--yeast-auth-primary-deep);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}

.yeast-forgot-link:hover,
.yeast-signup-link a:hover { color: var(--yeast-auth-primary); }

.yeast-login-submit.btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    height: 49px;
    margin: 0;
    border: 0;
    border-radius: 12px;
    color: #fff;
    background: linear-gradient(135deg, var(--yeast-auth-primary), var(--yeast-auth-primary-deep));
    font-size: 13px;
    font-weight: 700;
    box-shadow: 0 12px 26px rgba(17,119,111,.22);
    transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}

.yeast-login-submit.btn:hover,
.yeast-login-submit.btn:focus {
    color: #fff;
    filter: brightness(1.04);
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(17,119,111,.28);
}

.yeast-signup-link {
    margin-top: 18px;
    color: var(--yeast-auth-muted);
    text-align: center;
    font-size: 13px;
}

.yeast-login-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    width: 100%;
    max-width: 470px;
    margin: 18px auto 0;
    padding-top: 17px;
    border-top: 1px solid #edf3f2;
    color: #93a4a8;
    font-size: 11px;
}

.yeast-secure-note { display: inline-flex; align-items: center; gap: 6px; }
.yeast-secure-note i { color: var(--yeast-auth-secondary); }

.rtl .yeast-login-page,
[dir="rtl"] .yeast-login-page {
    font-family: "Segoe UI", Tahoma, Arial, sans-serif;
}

.rtl .yeast-field .form-control,
[dir="rtl"] .yeast-field .form-control { text-align: right; }

@keyframes yeast-auth-enter {
    from { opacity: 0; transform: translateY(18px) scale(.99); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes yeast-auth-float {
    0%, 100% { transform: translate3d(0, 0, 0); }
    50% { transform: translate3d(0, 14px, 0); }
}

@media (max-width: 900px) {
    .yeast-login-page { padding: 22px; }
    .yeast-login-shell { grid-template-columns: 280px minmax(390px, 1fr); min-height: 570px; }
    .yeast-login-brand { padding: 32px 27px; }
    .yeast-brand-copy h1 { font-size: 28px; }
    .yeast-brand-features span { padding: 8px 10px; }
    .yeast-login-form-panel { padding-inline: 40px; }
}

@media (max-width: 720px) {
    .yeast-login-page { display: block; min-height: 100vh; padding: 16px; }
    .yeast-login-shell { display: block; width: 100%; min-height: calc(100vh - 32px); border-radius: 21px; }
    .yeast-login-brand { display: none; }
    .yeast-login-form-panel { min-height: calc(100vh - 32px); padding: 24px 25px 20px; }
    .yeast-login-toolbar { display: grid; grid-template-columns: 1fr; justify-items: center; gap: 14px; margin-bottom: 24px; }
    .yeast-mobile-logo { display: inline-flex; align-items: center; justify-content: center; max-width: 178px; min-height: 48px; padding: 7px 11px; border: 1px solid var(--yeast-auth-line); border-radius: 11px; background: #fff; }
    .yeast-mobile-logo .yeast-brand-wordmark { font-size: 20px; }
    .yeast-language-picker { justify-self: end; }
    .yeast-login-form-wrap { justify-content: flex-start; }
    .yeast-login-heading { margin-bottom: 26px; }
    .yeast-login-heading h2 { font-size: 25px; }
    .yeast-login-footer { margin-top: 34px; }
}

@media (max-width: 420px) {
    .yeast-login-page { padding: 0; }
    .yeast-login-shell,
    .yeast-login-form-panel { min-height: 100vh; border-radius: 0; }
    .yeast-login-form-panel { padding: 24px 20px 18px; }
    .yeast-login-options { align-items: flex-start; flex-direction: column; gap: 13px; }
    .yeast-login-footer { align-items: flex-start; flex-direction: column; gap: 7px; }
}

@media (prefers-reduced-motion: reduce) {
    .yeast-login-shell,
    .yeast-login-orb { animation: none; }
    .yeast-login-submit.btn { transition: none; }
}
