@import url("https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap");

:root {
    --primary: #1677ff;
    --primary-dark: #0864df;
    --green: #18a957;
    --page: #edf2f8;
    --white: #ffffff;
    --text: #16243a;
    --muted: #68788d;
    --light: #8b98a8;
    --border: #dfe6ee;
    --shadow: 0 22px 65px rgba(22, 42, 72, .14);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { min-height: 100vh; color: var(--text); background: var(--page); font-family: "Plus Jakarta Sans", sans-serif; }
a { color: inherit; text-decoration: none; }
button, input, select { font-family: inherit; }
button { cursor: pointer; }

.auth-page {
    min-height: 100vh;
    padding: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(circle at 10% 10%, rgba(22,119,255,.12), transparent 32%),
        radial-gradient(circle at 92% 86%, rgba(24,169,87,.1), transparent 30%),
        #edf2f8;
}

.auth-container {
    width: 100%;
    max-width: 1240px;
    min-height: 720px;
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(390px, .88fr);
    overflow: hidden;
    border: 1px solid rgba(204, 216, 230, .9);
    border-radius: 25px;
    background: var(--white);
    box-shadow: var(--shadow);
}

.brand-area {
    padding: 70px 65px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: #fff;
    background:
        radial-gradient(circle at 16% 10%, rgba(24,169,87,.6), transparent 28%),
        radial-gradient(circle at 85% 78%, rgba(105,76,255,.48), transparent 32%),
        linear-gradient(135deg, #102f56, #1677ff);
}

.brand-area::before,
.brand-area::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,.13);
}

.brand-area::before { width: 460px; height: 460px; top: -200px; right: -180px; }
.brand-area::after { width: 290px; height: 290px; bottom: -130px; left: -110px; }
.brand-logo { width: max-content; position: absolute; top: 35px; left: 55px; z-index: 2; }
.brand-logo img { width: 190px; height: 55px; padding: 6px 10px; object-fit: contain; border-radius: 11px; background: rgba(255,255,255,.95); }
.brand-kicker { position: relative; z-index: 1; color: #a9d5ff; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: 1.2px; }
.brand-area h1 { max-width: 620px; position: relative; z-index: 1; margin-top: 12px; font-size: clamp(42px, 5vw, 67px); line-height: 1.05; letter-spacing: -3px; }
.brand-area h1 span { color: #8dffca; }
.brand-area > p { max-width: 610px; position: relative; z-index: 1; margin-top: 20px; color: rgba(255,255,255,.76); font-size: 14px; line-height: 1.85; }

.brand-features { position: relative; z-index: 1; margin-top: 38px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.feature-item { min-height: 120px; padding: 16px; display: flex; flex-direction: column; gap: 12px; border: 1px solid rgba(255,255,255,.16); border-radius: 17px; background: rgba(255,255,255,.09); backdrop-filter: blur(10px); }
.feature-icon { width: 39px; height: 39px; display: flex; align-items: center; justify-content: center; border-radius: 12px; color: #fff; font-weight: 800; }
.feature-network .feature-icon { background: linear-gradient(135deg, #24a3ff, #1677ff); }
.feature-products .feature-icon { background: linear-gradient(135deg, #ff9f3f, #ef671a); }
.feature-growth .feature-icon { background: linear-gradient(135deg, #22c776, #0d984e); }
.feature-item strong { display: block; font-size: 11px; margin-bottom: 5px; }
.feature-item span { color: rgba(255,255,255,.67); font-size: 9px; line-height: 1.55; }

.login-area { padding: 48px 52px 30px; display: flex; flex-direction: column; justify-content: center; background: #fbfcfe; }
.login-card { width: 100%; max-width: 440px; margin: 0 auto; padding: 34px; border: 1px solid var(--border); border-radius: 20px; background: #fff; box-shadow: 0 15px 45px rgba(31,56,87,.08); }
.mobile-logo { display: none; }
.login-heading > span, .register-header > span { display: block; color: var(--primary); font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 7px; }
.login-heading h2, .register-header h2 { font-size: 26px; letter-spacing: -.8px; }
.login-heading p, .register-header p { margin-top: 7px; color: var(--muted); font-size: 11px; line-height: 1.6; }
.alert { margin: 18px 0 0; padding: 12px 13px; border-radius: 10px; font-size: 10px; line-height: 1.6; }
.alert-error { color: #b92d2d; background: #fff0f0; border: 1px solid #ffd4d4; }
.alert-success { color: #08783b; background: #eafbf2; border: 1px solid #c7f0d9; }
.login-form, .register-form { margin-top: 22px; }
.form-group { margin-bottom: 15px; }
.form-group label { display: block; margin-bottom: 7px; font-size: 10px; font-weight: 800; }
.form-group label span { color: var(--light); font-weight: 500; }
.form-group small { display: block; color: var(--light); font-size: 8px; line-height: 1.5; margin-top: 6px; }
.form-group input, .form-group select { width: 100%; height: 49px; padding: 0 13px; border: 1px solid var(--border); border-radius: 10px; outline: none; color: var(--text); background: #f9fbfd; font-size: 11px; transition: .2s ease; }
.form-group input:focus, .form-group select:focus { border-color: var(--primary); background: #fff; box-shadow: 0 0 0 4px rgba(22,119,255,.08); }
.password-label { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.password-label a { color: var(--primary); font-size: 9px; font-weight: 800; }
.password-input { position: relative; }
.password-input input { padding-right: 65px; }
.password-toggle { height: 33px; padding: 0 10px; position: absolute; top: 8px; right: 8px; border: none; border-radius: 8px; color: var(--primary); background: #edf5ff; font-size: 8px; font-weight: 800; }
.login-button, .register-button, .create-account-button { width: 100%; min-height: 47px; border: none; border-radius: 10px; font-size: 11px; font-weight: 800; }
.login-button, .register-button { color: #fff; background: linear-gradient(135deg, #1677ff, #5c4cff); box-shadow: 0 10px 24px rgba(22,119,255,.24); }
.create-account-button { color: var(--primary); background: #edf5ff; border: 1px solid #d7e8ff; }
.form-divider { margin: 20px 0; position: relative; text-align: center; }
.form-divider::before { content: ""; height: 1px; position: absolute; left: 0; right: 0; top: 50%; background: var(--border); }
.form-divider span { padding: 0 10px; position: relative; color: var(--light); background: #fff; font-size: 8px; }
.business-note, .copyright { margin-top: 18px; color: var(--muted); text-align: center; font-size: 9px; }
.footer-links { margin-top: 18px; display: flex; justify-content: center; gap: 16px; }
.footer-links a { color: var(--light); font-size: 8px; }
.copyright { margin-top: 11px; }

.modal-overlay { position: fixed; inset: 0; z-index: 1000; padding: 20px; display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; background: rgba(8,23,43,.7); backdrop-filter: blur(8px); transition: .25s ease; }
.modal-overlay.active { opacity: 1; visibility: visible; }
.register-modal { width: 100%; max-width: 720px; max-height: calc(100vh - 35px); padding: 31px; position: relative; overflow-y: auto; border-radius: 20px; background: #fff; box-shadow: 0 28px 80px rgba(0,0,0,.28); transform: translateY(20px) scale(.98); transition: .25s ease; }
.modal-overlay.active .register-modal { transform: translateY(0) scale(1); }
.modal-close { width: 37px; height: 37px; position: absolute; top: 15px; right: 15px; border: none; border-radius: 50%; color: #d74646; background: #fff0f0; font-size: 22px; }
.register-header { padding-right: 45px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.password-generator-row { margin: 5px 0 15px; padding: 12px; display: flex; align-items: center; justify-content: space-between; gap: 14px; border-radius: 11px; background: linear-gradient(135deg, #edf5ff, #f2efff); }
.password-generator-row strong { display: block; font-size: 10px; }
.password-generator-row span { display: block; margin-top: 4px; color: var(--muted); font-size: 8px; }
.password-generator-row button { min-height: 36px; padding: 0 11px; border: none; border-radius: 8px; color: #fff; background: var(--primary); font-size: 8px; font-weight: 800; white-space: nowrap; }
.terms-check { margin: 3px 0 16px; display: flex; align-items: flex-start; gap: 8px; color: var(--muted); font-size: 9px; line-height: 1.5; }
.terms-check input { margin-top: 2px; accent-color: var(--primary); }

@media (max-width: 900px) {
    .auth-page { padding: 0; align-items: flex-start; background: #f1f4f8; }
    .auth-container { min-height: 100vh; display: block; border: none; border-radius: 0; box-shadow: none; background: #f1f4f8; }
    .brand-area { display: none; }
    .login-area { min-height: 100vh; padding: 25px 14px 35px; justify-content: flex-start; background: linear-gradient(180deg, #eaf4ff 0, #f1f4f8 42%); }
    .login-card { max-width: 520px; margin-top: 7px; padding: 25px 19px; border-radius: 18px; }
    .mobile-logo { margin: 0 auto 19px; display: flex; justify-content: center; }
    .mobile-logo img { width: 185px; height: 52px; object-fit: contain; }
    .login-heading { text-align: center; }
    .login-heading h2 { font-size: 23px; }
    .business-note { margin-top: 14px; }
    .modal-overlay { padding: 0; align-items: flex-end; }
    .register-modal { max-width: none; max-height: 92vh; padding: 27px 16px calc(25px + env(safe-area-inset-bottom)); border-radius: 24px 24px 0 0; transform: translateY(100%); }
    .modal-overlay.active .register-modal { transform: translateY(0); }
    .register-header h2 { font-size: 23px; }
}

@media (max-width: 600px) {
    .form-row { grid-template-columns: 1fr; gap: 0; }
    .password-generator-row { align-items: flex-start; flex-direction: column; }
    .password-generator-row button { width: 100%; }
    .footer-links { gap: 11px; }
}
