@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
    --login-primary: #635bff;
    --login-primary-2: #8062ff;
    --login-dark: #081735;
    --login-dark-2: #142850;
    --login-text: #11182f;
    --login-muted: #6f788d;
    --login-border: #e4e7ef;
    --login-soft: #f7f7ff;
    --login-white: #ffffff;
    --login-green: #28c991;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
}

body {
    min-height: 100vh;
    font-family: "Manrope", sans-serif;
    color: var(--login-text);
    background: #f5f6fb;
}

/* =========================
   PAGE
   ========================= */

.login-page {
    position: relative;
    min-height: 100vh;
    display: grid;
    place-items: center;
    overflow: hidden;
    padding: 40px 20px;
    background:
        radial-gradient(circle at 10% 10%, rgba(99, 91, 255, .13), transparent 28%),
        radial-gradient(circle at 90% 85%, rgba(40, 201, 145, .07), transparent 24%),
        #f5f6fb;
}

.login-page::before {
    content: "";
    position: absolute;
    width: 700px;
    height: 700px;
    right: -360px;
    top: -300px;
    border: 1px solid rgba(99, 91, 255, .08);
    border-radius: 50%;
    box-shadow:
        0 0 0 85px rgba(99, 91, 255, .018),
        0 0 0 170px rgba(99, 91, 255, .012);
}

.login-bg-glow {
    position: absolute;
    pointer-events: none;
    border-radius: 50%;
}

.login-bg-glow-one {
    width: 320px;
    height: 320px;
    left: -150px;
    bottom: -170px;
    background: rgba(99, 91, 255, .09);
}

.login-bg-glow-two {
    width: 240px;
    height: 240px;
    right: 12%;
    bottom: -140px;
    background: rgba(40, 201, 145, .05);
}

/* =========================
   MAIN SHELL
   ========================= */

.login-shell {
    position: relative;
    z-index: 2;
    width: min(1060px, 100%);
    min-height: 620px;
    display: grid;
    grid-template-columns: .95fr 1.05fr;
    overflow: hidden;
    border: 1px solid rgba(17, 24, 47, .06);
    border-radius: 32px;
    background: #fff;
    box-shadow: 0 32px 80px rgba(20, 29, 65, .14);
}
.login-brand-badge-logo {
	height: 70px;
}
/* =========================
   LEFT PANEL
   ========================= */

.login-brand-panel {
    position: relative;
    overflow: hidden;
    padding: 58px 52px;
    color: #fff;
    background:
        radial-gradient(circle at 0% 0%, rgba(128, 98, 255, .48), transparent 34%),
        linear-gradient(145deg, #081735 0%, #142850 62%, #303b83 100%);
}

.login-brand-panel::after {
    content: "";
    position: absolute;
    width: 330px;
    height: 330px;
    right: -165px;
    bottom: -165px;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 50%;
    box-shadow:
        0 0 0 55px rgba(255,255,255,.02),
        0 0 0 110px rgba(255,255,255,.012);
}

.login-brand-badge {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 9px 13px;
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 999px;
    background: rgba(255,255,255,.07);
    color: #fff;
    font-size: 13px;
    font-weight: 800;
}

.login-brand-badge i {
    color: #bcb8ff;
}

.login-brand-copy {
    position: relative;
    z-index: 2;
    margin-top: 95px;
}

.login-kicker {
    display: inline-block;
    margin-bottom: 15px;
    color: #bcb8ff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.login-brand-copy h1 {
    max-width: 460px;
    margin: 0;
    color: #fff;
    font-size: 36px;
    line-height: 1.08;
}

.login-brand-copy h1 strong {
    display: block;
    color: #a7a3ff;
    font-weight: 800;
}

.login-brand-copy p {
    max-width: 430px;
    margin-top: 22px;
    color: #b9c3d8;
    font-size: 14px;
    line-height: 1.8;
}

.login-brand-points {
    position: relative;
    z-index: 2;
    display: grid;
    gap: 12px;
    margin-top: 42px;
}

.login-brand-points > div {
    display: flex;
    align-items: center;
    gap: 11px;
    color: #e3e8f4;
    font-size: 12px;
    font-weight: 600;
}

.login-brand-points span {
    display: grid;
    place-items: center;
    width: 25px;
    height: 25px;
    border-radius: 8px;
    color: #103a2b;
    background: #7be5bc;
    font-size: 10px;
}

/* =========================
   FORM PANEL
   ========================= */

.login-form-panel {
    display: grid;
    place-items: center;
    padding: 60px;
    background: #fff;
}

.login-card {
    width: min(420px, 100%);
}

.login-card-header {
    margin-bottom: 30px;
}

.login-card-icon {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    margin-bottom: 20px;
    border-radius: 16px;
    color: var(--login-primary);
    background: #f0efff;
    font-size: 18px;
}

.login-card h2 {
    margin: 0;
    color: var(--login-dark);
    font-size: 30px;
    line-height: 1.15;
}

.login-card-header p {
    margin-top: 8px;
    color: var(--login-muted);
    font-size: 13px;
}

/* Alert */
.login-alert {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin-bottom: 22px;
    padding: 12px 14px;
    border: 1px solid #f0caca;
    border-radius: 12px;
    color: #a63232;
    background: #fff2f2;
    font-size: 12px;
    line-height: 1.5;
}

.login-alert i {
    margin-top: 2px;
}

/* =========================
   INPUTS
   ========================= */

.input-group {
    margin-bottom: 20px;
}

.input-group > label {
    display: block;
    margin-bottom: 8px;
    color: #5d687e;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .03em;
    text-transform: uppercase;
}

.input-wrap {
    position: relative;
}

.input-wrap > i {
    position: absolute;
    z-index: 2;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #8d96aa;
    font-size: 14px;
    transition: color .2s ease;
}

.input-group input[type="email"],
.input-wrap input#password,
.input-wrap input#password_confirmation {
    width: 100%;
    min-height: 54px;
    padding: 13px 48px 13px 44px;
    border: 1px solid var(--login-border);
    border-radius: 13px;
    outline: none;
    color: var(--login-text);
    background: #fbfcfe;
    font-family: inherit;
    font-size: 14px;
    transition:
        border-color .2s ease,
        box-shadow .2s ease,
        background .2s ease;
}
.input-group input:focus {
    border-color: #8f89ff;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(99, 91, 255, .08);
}
/* Password eye button fix */

.input-wrap {
    position: relative;
}

.password-toggle {
    position: absolute;
    z-index: 5;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);

    display: grid;
    place-items: center;

    width: 36px !important;
    min-height: 36px !important;
    height: 36px;

    padding: 0 !important;
    margin: 0;

    border: 0;
    border-radius: 9px !important;

    color: #8d96aa;
    background: transparent !important;

    box-shadow: none !important;
    cursor: pointer;
}

.password-toggle:hover {
    color: var(--login-primary);
    background: #f0efff !important;
    transform: translateY(-50%) !important;
    box-shadow: none !important;
}

.password-toggle svg {
    display: block;
    width: 18px;
    height: 18px;
}

.password-toggle .eye-closed {
    display: none;
}
.input-wrap:focus-within > i {
    color: var(--login-primary);
}

.input-group input::placeholder {
    color: #9da5b5;
}

/* =========================
   OPTIONS
   ========================= */

.options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    margin: 4px 0 26px;
    color: #667186;
    font-size: 12px;
}

.remember-option {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.remember-option input {
    width: 16px;
    height: 16px;
    accent-color: var(--login-primary);
}

.options a {
    color: var(--login-primary);
    font-weight: 700;
    text-decoration: none;
}

.options a:hover {
    text-decoration: underline;
}

/* =========================
   BUTTON
   ========================= */

.login-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    width: 100%;
    min-height: 54px;
    padding: 0 24px;
    border: 0;
    border-radius: 13px;
    color: #fff;
    background: linear-gradient(135deg, var(--login-primary), var(--login-primary-2));
    box-shadow: 0 14px 28px rgba(99, 91, 255, .24);
    font-family: inherit;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    transition:
        transform .2s ease,
        box-shadow .2s ease;
}

.login-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 34px rgba(99, 91, 255, .31);
}

.login-security-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin-top: 18px;
    color: #8a93a5;
    font-size: 10px;
}

.login-security-note i {
    color: var(--login-primary);
}



/* =====================================================
   FORGOT PASSWORD - CSS ONLY
   ===================================================== */

.forgot-success {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin-bottom: 22px;
    padding: 12px 14px;
    border: 1px solid #bcebd9;
    border-radius: 12px;
    color: #13744f;
    background: #eafbf4;
    font-size: 12px;
    line-height: 1.5;
}

.forgot-success svg {
    width: 16px;
    height: 16px;
    flex: 0 0 auto;
    margin-top: 1px;
}

.forgot-error {
    display: block;
    margin-top: 6px;
    color: #d83a3a;
    font-size: 11px;
    line-height: 1.5;
}

.forgot-back-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    width: 100%;
    margin-top: 18px;
    color: var(--login-primary);
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
}

.forgot-back-link:hover {
    text-decoration: underline;
}

.forgot-back-link svg {
    width: 15px;
    height: 15px;
}

/* SVG support for forgot password email + button icons */
.input-wrap > svg {
    position: absolute;
    z-index: 2;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 17px;
    height: 17px;
    color: #8d96aa;
    pointer-events: none;
    transition: color .2s ease;
}

.input-wrap:focus-within > svg {
    color: var(--login-primary);
}

.login-submit svg {
    width: 16px;
    height: 16px;
}

.login-security-note svg {
    width: 12px;
    height: 12px;
    color: var(--login-primary);
    flex: 0 0 auto;
}




/* =====================================================
   RESET PASSWORD - CSS ONLY
   ===================================================== */

.reset-error {
    display: block;
    margin-top: 6px;
    color: #d83a3a;
    font-size: 11px;
    line-height: 1.5;
}

.reset-back-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    width: 100%;
    margin-top: 18px;
    color: var(--login-primary);
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
}

.reset-back-link:hover {
    text-decoration: underline;
}

.reset-back-link svg {
    width: 15px;
    height: 15px;
}

/* Keep room for show/hide button */
.input-group input[type="password"],
.input-group input[type="text"]#password,
.input-group input[type="text"]#password_confirmation {
    padding-right: 46px;
}

/* Reuse the same eye-toggle style for both password fields */
.password-toggle {
    position: absolute;
    z-index: 3;
    top: 50%;
    right: 13px;
    transform: translateY(-50%);
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 0;
    border-radius: 9px;
    color: #8d96aa;
    background: transparent;
    cursor: pointer;
    transition: color .2s ease, background .2s ease;
}

.password-toggle:hover,
.password-toggle:focus-visible {
    color: var(--login-primary);
    background: #f0efff;
    outline: none;
}

.password-toggle svg {
    width: 18px;
    height: 18px;
}

.password-toggle .eye-closed {
    display: none;
}




/* =========================
   RESPONSIVE
   ========================= */

@media (max-width: 900px) {
    .login-shell {
        grid-template-columns: 1fr;
        max-width: 620px;
    }

    .login-brand-panel {
        padding: 38px 34px;
    }

    .login-brand-copy {
        margin-top: 45px;
    }

    .login-brand-points {
        grid-template-columns: 1fr 1fr;
    }

    .login-form-panel {
        padding: 45px 34px;
    }
	.login-brand-copy h1, .login-card h2 {
	   font-size: 24px;
    }
}

@media (max-width: 600px) {
    .login-page {
        padding: 18px 12px;
    }

    .login-shell {
        border-radius: 22px;
    }

    .login-brand-panel {
        padding: 30px 22px;
    }

    .login-brand-copy {
        margin-top: 34px;
    }

    .login-brand-copy p {
        font-size: 13px;
    }

    .login-brand-points {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .login-form-panel {
        padding: 36px 22px;
    }

    .options {
        align-items: flex-start;
        flex-direction: column;
    }
}


/* Password show/hide icon */
.input-group input[type="password"],
.input-group input[type="text"]#password {
    padding-right: 46px;
}

.password-toggle {
    position: absolute;
    z-index: 3;
    top: 50%;
    right: 13px;
    transform: translateY(-50%);
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 0;
    border-radius: 9px;
    color: #8d96aa;
    background: transparent;
    cursor: pointer;
    font-size: 14px;
    transition: color .2s ease, background .2s ease;
}

.password-toggle:hover,
.password-toggle:focus-visible {
    color: var(--login-primary);
    background: #f0efff;
    outline: none;
}

.password-toggle i {
    pointer-events: none;
}


/* Inline SVG icon support - no Font Awesome required */
.login-brand-badge svg,
.login-brand-points svg,
.login-card-icon svg,
.login-alert svg,
.input-wrap > svg,
.login-submit svg,
.login-security-note svg,
.password-toggle svg {
    width: 18px;
    height: 18px;
    display: block;
    flex: 0 0 auto;
}

.login-brand-badge svg {
    color: #bcb8ff;
}

.login-brand-points span svg {
    width: 13px;
    height: 13px;
}

.login-card-icon svg {
    width: 21px;
    height: 21px;
}

.login-alert svg {
    width: 16px;
    height: 16px;
    margin-top: 1px;
}

.input-wrap > svg {
    position: absolute;
    z-index: 2;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 17px;
    height: 17px;
    color: #8d96aa;
    pointer-events: none;
    transition: color .2s ease;
}

.input-wrap:focus-within > svg {
    color: var(--login-primary);
}

.login-submit svg {
    width: 16px;
    height: 16px;
}

.login-security-note svg {
    width: 12px;
    height: 12px;
    color: var(--login-primary);
}

.password-toggle svg {
    width: 18px;
    height: 18px;
}

.password-toggle .eye-closed {
    display: none;
}

