/* Importing a professional and modern Google Font */
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@300;400;700&display=swap');

body {
    font-family: 'Nunito', sans-serif;
    background: linear-gradient(to bottom right, #0a2540, #173d68);
    color: #333;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

/* Wrapper to align logo and login form */
.login-wrapper {
    display: flex;
    width: 900px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

/* Left Panel: White Background to Match Your Logo */
.login-left {
    width: 40%;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-left img {
    max-width: 85%;
    height: auto;
    border-radius: 10px;
}

/* Right Panel: Light Blue Background for Login Form */
.login-right {
    width: 60%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    background: #e3ecff;
}

/* Login Form Box */
.login-box {
    text-align: center;
    width: 100%;
    max-width: 320px;
}

.login-box h1 {
    margin-bottom: 1rem;
    font-size: 2.2rem;
    font-weight: 700;
    color: #0a2540;
}

.login-box p {
    font-size: 1rem;
    font-style: italic;
    color: #555;
    margin-bottom: 2rem;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

/* Form Fields */
.form-group {
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 0.4rem;
    font-size: 1rem;
    font-weight: 600;
    color: #0a2540;
}

.form-group input {
    padding: 12px;
    font-size: 1rem;
    width: 100%;
    border: 2px solid #0a2540;
    border-radius: 10px;
    background: #fff;
    color: #333;
    transition: 0.3s ease-in-out;
    box-sizing: border-box;
}

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

.form-group input:focus {
    outline: none;
    border-color: #173d68;
    box-shadow: 0 0 8px rgba(10, 37, 64, 0.5);
}

/* Login Button - Same Width as Input */
.login-button {
    padding: 12px;
    font-size: 1rem;
    border: none;
    border-radius: 10px;
    background: linear-gradient(to right, #007bff, #0056b3);
    color: #ffffff;
    font-weight: 700;
    cursor: pointer;
    width: 100%;
    transition: transform 0.2s ease-in-out, background 0.3s ease;
    box-sizing: border-box;
}

.login-button:hover {
    transform: translateY(-3px);
    background: linear-gradient(to right, #0056b3, #007bff);
}

.login-button:active {
    transform: translateY(1px);
}

.signup-link {
    margin-top: 15px;
    text-align: center;
}

.signup-link a {
    color: #007bff;
    text-decoration: none;
    font-weight: bold;
}
.signup-link a:hover {
    text-decoration: underline;
}

*, *::before, *::after {
    box-sizing: border-box;
}

:root {
    --green-950: #0d1f07;
    --green-900: #1a3a0a;
    --green-800: #27500a;
    --green-700: #3b6d11;
    --green-600: #4f8a18;
    --green-500: #639922;
    --green-400: #7cb52e;
    --green-200: #c0dd97;
    --green-100: #dff0c0;
    --green-50: #eaf3de;
    --green-25: #f2f7ee;
    --cream-100: #fbf8f2;
    --cream-200: #f5efe2;
    --stone: #8a8a7a;
    --stone-light: #c8c8b8;
    --font-display: "Playfair Display", Georgia, serif;
    --font-body: "DM Sans", sans-serif;
}

html,
body {
    min-height: 100%;
}

body {
    display: block;
    height: auto;
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
    background: var(--cream-100);
    color: var(--green-900);
    font-family: var(--font-body);
}

.auth-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    background: var(--cream-100);
}

.auth-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: .35;
}

.blob-one {
    width: 480px;
    height: 480px;
    top: -130px;
    left: -110px;
    background: var(--green-200);
}

.blob-two {
    width: 340px;
    height: 340px;
    right: -70px;
    bottom: -90px;
    background: var(--green-100);
}

.auth-leaf {
    position: absolute;
    width: 46px;
    height: 46px;
    border-radius: 0 50% 0 50%;
    background: var(--green-700);
    opacity: .12;
}

.leaf-one {
    top: 70px;
    right: 90px;
    transform: rotate(20deg);
}

.leaf-two {
    left: 70px;
    bottom: 130px;
    transform: rotate(-40deg);
}

.auth-page {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(320px, 1fr) minmax(360px, 520px);
}

.auth-page.single {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 20px;
}

.auth-panel {
    padding: 48px 52px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

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

.brand-row.compact {
    margin-bottom: 26px;
}

.brand-mark {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: #0d1319;
    box-shadow: 0 10px 26px rgba(13, 19, 25, .16);
    overflow: hidden;
}

.brand-mark img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.brand-name {
    font-family: var(--font-display);
    font-size: 20px;
    color: var(--green-900);
}

.brand-name span {
    color: var(--green-700);
    font-style: italic;
}

.auth-copy {
    max-width: 430px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    color: var(--green-700);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.eyebrow::before {
    content: "";
    width: 24px;
    height: 2px;
    background: var(--green-400);
}

.auth-copy h1 {
    margin: 0 0 18px;
    font-family: var(--font-display);
    font-size: clamp(34px, 4vw, 48px);
    line-height: 1.15;
    color: var(--green-900);
}

.auth-copy p,
.auth-subtitle {
    color: var(--stone);
    font-weight: 300;
    line-height: 1.7;
}

.feature-list {
    display: grid;
    gap: 13px;
    margin-top: 34px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.feature-item > span {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: var(--green-50);
    border: 1px solid var(--green-100);
    position: relative;
    flex: 0 0 auto;
}

.feature-item > span::after {
    content: "";
    position: absolute;
    inset: 10px;
    border-radius: 0 50% 0 50%;
    background: var(--green-700);
}

.feature-item strong {
    display: block;
    color: var(--green-800);
    font-size: 13px;
}

.feature-item small,
.auth-panel footer {
    color: var(--stone-light);
    font-weight: 300;
}

.auth-card {
    align-self: center;
    width: calc(100% - 80px);
    max-width: 430px;
    margin: 48px 40px;
    padding: 42px 40px;
    border: 1px solid var(--green-100);
    border-radius: 32px;
    background: #fff;
    box-shadow: 0 24px 70px rgba(39, 80, 10, .08);
    position: relative;
    overflow: hidden;
}

.auth-page.single .auth-card {
    width: min(430px, 100%);
    margin: 0;
}

.auth-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--green-400), var(--green-600));
}

.auth-card h2 {
    margin: 0 0 8px;
    font-family: var(--font-display);
    font-size: 29px;
    color: var(--green-900);
}

.auth-subtitle {
    margin: 0 0 26px;
    font-size: 14px;
}

.tab-row {
    display: flex;
    gap: 4px;
    padding: 4px;
    margin-bottom: 26px;
    border-radius: 8px;
    background: var(--green-25);
}

.tab-btn {
    flex: 1;
    padding: 9px;
    border-radius: 6px;
    color: var(--stone);
    text-align: center;
    text-decoration: none;
    font-size: 13px;
}

.tab-btn.active {
    background: #fff;
    color: var(--green-800);
    font-weight: 700;
    box-shadow: 0 1px 3px rgba(0,0,0,.08);
}

.auth-form {
    display: grid;
    gap: 17px;
}

.field label {
    display: block;
    margin-bottom: 7px;
    color: var(--green-800);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .03em;
}

.input-wrap {
    display: flex;
    align-items: center;
    min-height: 46px;
    padding: 0 14px;
    border: 1.5px solid var(--green-100);
    border-radius: 14px;
    background: var(--green-25);
    transition: border-color .2s, background .2s;
}

.input-wrap:focus-within {
    border-color: var(--green-400);
    background: #fff;
}

.input-wrap svg {
    width: 17px;
    height: 17px;
    flex: 0 0 auto;
    fill: none;
    stroke: var(--green-400);
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.input-wrap input {
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--green-900);
    font-family: var(--font-body);
    font-size: 14px;
    padding: 12px 10px;
}

.input-wrap input::placeholder {
    color: var(--stone-light);
}

.eye-btn {
    display: flex;
    align-items: center;
    border: 0;
    background: transparent;
    cursor: pointer;
    padding: 4px;
}

.auth-extra {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: -4px;
    color: var(--stone);
    font-size: 12px;
}

.auth-extra label {
    display: flex;
    align-items: center;
    gap: 7px;
}

.auth-extra input {
    accent-color: var(--green-600);
}

.auth-extra a,
.auth-footer a {
    color: var(--green-700);
    font-weight: 700;
    text-decoration: none;
}

.primary-btn {
    width: 100%;
    padding: 14px;
    border: 0;
    border-radius: 14px;
    background: var(--green-700);
    color: #fff;
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
}

.primary-btn:hover {
    background: var(--green-800);
}

.auth-footer {
    margin: 21px 0 0;
    text-align: center;
    color: var(--stone);
    font-size: 13px;
}

.trust-row {
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid var(--green-50);
    color: var(--stone-light);
    font-size: 11px;
    line-height: 1.45;
}

.auth-messages {
    display: grid;
    gap: 8px;
    margin-bottom: 18px;
}

.auth-message {
    border-radius: 12px;
    border: 1px solid var(--green-100);
    background: var(--green-25);
    color: var(--green-800);
    padding: 10px 12px;
    font-size: 13px;
}

.auth-message.error {
    border-color: #f3c4b8;
    background: #fff1ed;
    color: #9b2c12;
}

.field-error {
    margin-top: 6px;
    color: #9b2c12;
    font-size: 12px;
}

@media (max-width: 860px) {
    .auth-page {
        display: flex;
        align-items: flex-start;
        justify-content: center;
        padding: 32px 20px;
    }

    .auth-panel {
        display: none;
    }

    .auth-card {
        width: min(430px, 100%);
        margin: 0;
        padding: 36px 28px;
        border-radius: 22px;
    }
}

.company-register-page {
    align-items: flex-start;
    padding: 36px 24px;
}

.company-register-page .auth-panel {
    position: sticky;
    top: 36px;
}

.auth-card.company-card {
    max-width: 620px;
}

.company-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.company-form .field:first-child,
.company-form .primary-btn {
    grid-column: 1 / -1;
}

.subscribe-page {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(280px, 420px) 1fr;
    gap: 28px;
    padding: 44px;
}

.subscribe-intro,
.subscribe-plans,
.front-plan-card {
    border: 1px solid rgba(59, 109, 17, .14);
    border-radius: 14px;
    background: rgba(255,255,255,.86);
    box-shadow: 0 18px 50px rgba(10, 22, 5, .08);
}

.subscribe-intro {
    align-self: start;
    display: grid;
    gap: 16px;
    padding: 28px;
}

.subscribe-intro > span {
    color: var(--green-700);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.subscribe-intro h1,
.subscribe-plans h2,
.front-plan-card h3 {
    margin: 0;
    color: var(--green-900);
    font-family: var(--font-display);
    font-weight: 500;
}

.subscribe-intro p {
    margin: 0;
    color: #6e6e60;
}

.subscribe-intro ul,
.front-plan-card ul {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.subscribe-intro li,
.front-plan-card li {
    display: flex;
    gap: 8px;
    color: #4f5f43;
    font-size: 13px;
}

.subscribe-intro li i,
.front-plan-card li i {
    margin-top: 3px;
    color: var(--green-700);
}

.subscribe-plans {
    padding: 28px;
}

.plan-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 16px;
    margin-top: 18px;
}

.front-plan-card {
    position: relative;
    display: grid;
    gap: 14px;
    padding: 22px;
}

.front-plan-card.featured {
    border-color: var(--green-500);
}

.front-plan-card > i {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: var(--green-50);
    color: var(--green-700);
}

.plan-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    border-radius: 999px;
    padding: 5px 9px;
    background: var(--green-700);
    color: #fff;
    font-size: 11px;
}

.front-plan-price {
    color: var(--green-900);
    font-size: 24px;
    font-weight: 800;
}

.front-plan-price span {
    color: #8a8a7a;
    font-size: 12px;
    font-weight: 600;
}

.front-plan-card li.muted {
    color: #a0a08e;
}

@media (max-width: 980px) {
    .company-register-page .auth-panel {
        position: static;
    }

    .company-form {
        grid-template-columns: 1fr;
    }

    .subscribe-page {
        grid-template-columns: 1fr;
        padding: 24px;
    }
}
