/* =====================================================
   PAGE
===================================================== */

.login-wrapper {
    min-height: 100vh;
    background:
        radial-gradient(circle at 15% 15%, rgba(224,0,32,.18), transparent 45%),
        radial-gradient(circle at 85% 85%, rgba(224,0,32,.14), transparent 45%),
        linear-gradient(160deg, #050505 0%, #14040a 55%, #050505 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px;
    font-family: 'Plus Jakarta Sans', Arial, Helvetica, sans-serif;
}

.login-wrapper *:not(.fa-solid):not(.fa-regular):not(.fa-brands) {
    font-family: inherit;
}

.login-card {
    position: relative;
    width: min(1240px, 100%);
    height: min(760px, calc(100vh - 64px));
    background: #fff;
    border-radius: 22px;
    display: flex;
    overflow: hidden;
    box-shadow:
        0 1px 2px rgba(0,0,0,.2),
        0 30px 70px -12px rgba(0,0,0,.55),
        0 8px 24px -8px rgba(0,0,0,.35);
    animation: cardIn .5s cubic-bezier(.2,.7,.3,1);
}

@keyframes cardIn {
    from { transform: translateY(14px); opacity: 0; }
    to   { transform: translateY(0); opacity: 1; }
}

/* Login + Signup: brand panel on the left, form on the right. The other
   pages sharing this card keep the form on the left. */
.login-card-swapped {
    flex-direction: row-reverse;
}

/* =====================================================
   LEFT PANEL — FORM
===================================================== */

.login-left {
    flex: 1 1 50%;
    padding: 50px 60px 44px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow-y: auto;
}

.login-logo {
    display: flex;
    align-items: center;
    gap: 11px;
    margin-bottom: 34px;
}

.login-logo-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 0 0 1px rgba(16,24,40,.06);
}

.login-logo-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.login-logo-text {
    color: #b3001a;
    font-size: 19px;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -.2px;
}

.login-logo-sub {
    display: block;
    color: #98a2b3;
    font-size: 9.5px;
    font-weight: 600;
    letter-spacing: 1.4px;
    text-transform: uppercase;
}

.login-heading {
    margin-bottom: 8px;
}

.login-heading h1 {
    font-size: 30px;
    font-weight: 800;
    color: #101828;
    letter-spacing: -.6px;
}

.login-heading span {
    color: #d0001b;
}

.login-subtext {
    color: #667085;
    font-size: 14.5px;
    margin-bottom: 30px;
    line-height: 1.5;
}

.login-alert {
    padding: 11px 15px;
    border-radius: 10px;
    font-size: 12.5px;
    margin-bottom: 18px;
    font-weight: 500;
}

.login-alert-error {
    background: #fef3f2;
    border: 1px solid #fda29b;
    color: #b42318;
}

.login-alert-success {
    background: #ecfdf3;
    border: 1px solid #75e0a7;
    color: #067647;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-size: 12.5px;
    font-weight: 600;
    margin-bottom: 7px;
    color: #344054;
    letter-spacing: 0;
}

.input-wrap {
    position: relative;
}

.input-wrap i:not(.toggle-pass) {
    position: absolute;
    left: 17px;
    top: 50%;
    transform: translateY(-50%);
    color: #98a2b3;
    font-size: 15px;
}

.form-group input {
    width: 100%;
    height: 48px;
    background: #fff;
    border: 1.5px solid #d0d5dd;
    border-radius: 10px;
    padding: 0 18px 0 46px;
    outline: none;
    color: #101828;
    font-size: 14.5px;
    transition: border-color .15s, box-shadow .15s;
}

.form-group input::placeholder {
    color: #98a2b3;
}

.form-group input:focus {
    border-color: #d0001b;
    box-shadow: 0 0 0 4px rgba(208,0,27,0.10);
}

.toggle-pass {
    position: absolute;
    right: 17px;
    top: 50%;
    transform: translateY(-50%);
    color: #98a2b3;
    cursor: pointer;
    font-size: 15px;
    transition: color .15s;
}

.toggle-pass:hover {
    color: #667085;
}

.field-error {
    display: block;
    color: #d0001b;
    font-size: 12px;
    margin-top: 6px;
    font-weight: 500;
}

.form-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 4px 0 24px;
    font-size: 13.5px;
}

.remember {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #344054;
    font-weight: 500;
}

.remember input {
    width: 16px;
    height: 16px;
    accent-color: #d0001b;
    border-radius: 4px;
}

.forgot {
    color: #d0001b;
    font-weight: 600;
    cursor: pointer;
    transition: color .15s;
}

.forgot:hover {
    color: #8a0012;
}

.login-submit {
    width: 100%;
    height: 48px;
    background: linear-gradient(180deg, #e0192f, #c2001a);
    border: none;
    border-radius: 10px;
    color: white;
    font-weight: 700;
    font-size: 14.5px;
    letter-spacing: .2px;
    cursor: pointer;
    transition: transform .15s, box-shadow .15s, background .15s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    box-shadow: 0 1px 2px rgba(16,24,40,.05), 0 8px 16px -4px rgba(208,0,27,.32);
}

.login-submit i {
    font-size: 13px;
    transition: transform .15s;
}

.login-submit:hover {
    background: linear-gradient(180deg, #ec1f36, #a8001a);
    box-shadow: 0 1px 2px rgba(16,24,40,.05), 0 10px 20px -4px rgba(208,0,27,.4);
    transform: translateY(-1px);
}

.login-submit:hover i {
    transform: translateX(3px);
}

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

.divider {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 26px 0 20px;
}

.divider span {
    flex: 1;
    height: 1px;
    background: #eaecf0;
}

.divider p {
    color: #98a2b3;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
}

.social-login {
    display: flex;
    gap: 12px;
}

.social-btn {
    flex: 1;
    height: 46px;
    border-radius: 10px;
    border: 1.5px solid #d0d5dd;
    background: #fff;
    color: #344054;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    transition: border-color .15s, background .15s;
}

.social-btn:hover {
    border-color: #98a2b3;
    background: #f9fafb;
}

.social-btn .fa-google {
    color: #ea4335;
}

.social-btn .fa-facebook-f {
    color: #1877f2;
}

.signup-text {
    text-align: center;
    margin-top: 26px;
    font-size: 13.5px;
    color: #667085;
}

.signup-text a {
    color: #d0001b;
    font-weight: 700;
    cursor: pointer;
}

.signup-text a:hover {
    color: #8a0012;
}

.back-home {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 16px;
    font-size: 12.5px;
    color: #98a2b3;
    font-weight: 500;
    transition: color .15s;
}

.back-home:hover {
    color: #d0001b;
}

.back-home i {
    font-size: 11px;
}

/* =====================================================
   RIGHT PANEL — BRAND SHOWCASE
===================================================== */

.login-right {
    flex: 1 1 50%;
    position: relative;
    background: radial-gradient(120% 130% at 15% 10%, #1a0508 0%, #0a0a0c 55%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    overflow: hidden;
}

.login-right::before,
.login-right::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    filter: blur(2px);
}

.login-right::before {
    width: 560px;
    height: 560px;
    top: -220px;
    right: -220px;
    background: radial-gradient(circle at 35% 35%, #ff3347, #7a0010 72%);
    opacity: .9;
}

.login-right::after {
    width: 420px;
    height: 420px;
    bottom: -200px;
    left: -200px;
    background: radial-gradient(circle at 65% 65%, #7a0010, #ff3347 78%);
    opacity: .55;
}

.login-right-arc {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.login-right-arc::before {
    content: "";
    position: absolute;
    width: 700px;
    height: 700px;
    top: -280px;
    right: -280px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,.14);
}

.login-right-arc::after {
    content: "";
    position: absolute;
    width: 540px;
    height: 540px;
    bottom: -260px;
    left: -260px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,.10);
}

.login-right-badge {
    position: relative;
    z-index: 1;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    padding: 7px;
    background: linear-gradient(160deg, rgba(255,255,255,.16), rgba(255,255,255,.02));
    box-shadow: 0 20px 50px rgba(0,0,0,.45), inset 0 0 0 1px rgba(255,255,255,.12);
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-right-badge img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.login-right-brand {
    position: relative;
    z-index: 1;
    color: #fff;
    font-size: 38px;
    font-weight: 800;
    letter-spacing: -.3px;
    margin-top: 6px;
}

.login-right-tagline {
    position: relative;
    z-index: 1;
    color: rgba(255,255,255,.55);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 3.5px;
    text-transform: uppercase;
    margin-top: -10px;
}

.login-right-divider {
    position: relative;
    z-index: 1;
    width: 48px;
    height: 2px;
    background: #d0001b;
    border-radius: 2px;
    margin-top: 8px;
}

.login-right-blurb {
    position: relative;
    z-index: 1;
    color: rgba(255,255,255,.65);
    font-size: 13px;
    font-weight: 400;
    text-align: center;
    max-width: 300px;
    line-height: 1.6;
    margin-top: 4px;
}

/* =====================================================
   TOAST
===================================================== */

.toast {
    position: fixed;
    right: 25px;
    bottom: 25px;
    background: #101828;
    color: white;
    padding: 14px 20px;
    border-radius: 10px;
    z-index: 10000;
    transform: translateY(100px);
    opacity: 0;
    transition: .3s;
    font-size: 13px;
    box-shadow: 0 12px 30px rgba(16,24,40,.3);
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

/* =====================================================
   RESPONSIVE
===================================================== */

@media (max-width: 900px) {
    .login-wrapper {
        padding: 20px;
    }

    .login-card {
        flex-direction: column;
        height: auto;
        max-height: none;
    }

    .login-left {
        overflow-y: visible;
    }

    .login-right {
        order: -1;
        padding: 40px 20px;
        min-height: 200px;
    }

    .login-right-badge {
        width: 110px;
        height: 110px;
    }

    .login-right-brand {
        font-size: 24px;
    }

    .login-right-blurb {
        display: none;
    }

    .login-left {
        padding: 36px 28px 32px;
    }
}

@media (max-width: 500px) {
    .login-heading h1 {
        font-size: 25px;
    }

    .social-login {
        flex-direction: column;
    }
}
