* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

@font-face {
    font-family: "Gagalin";
    src: url("../fonts/Gagalin-Regular.otf") format("opentype");
}

:root {
    --navy: #12352d;
    --blue: #286347;
    --blue-dark: #1b5038;
    --cyan: #7c7f85;
    --green: #16a34a;
    --red: #dc2626;
    --orange: #f59e0b;
    --bg: #f4f6f2;
    --white: #ffffff;
    --line: #dce5dc;
    --text: #0f172a;
    --muted: #64748b;
}

body {
    min-height: 100vh;
    font-family: Arial, Helvetica, sans-serif;
    background: var(--bg);
    color: var(--text);
}

a {
    text-decoration: none;
}

button,
input,
select {
    font-family: inherit;
}

.auth-topbar {
    min-height: 76px;
    padding: 12px 4vw;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid var(--line);
}

.topbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text);
}

.topbar-logo {
    width: 52px;
    height: 52px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 15px;
    background: white;
}

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

.topbar-brand strong {
    display: block;
    font-size: 20px;
    line-height: 1;
}

.topbar-brand span {
    display: block;
    margin-top: 4px;
    color: var(--cyan);
    font-family: "Gagalin", Arial, sans-serif;
    font-size: 15px;
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.topbar-actions span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.topbar-actions a {
    min-height: 42px;
    padding: 0 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 11px;
    background: var(--blue);
    color: white;
    font-size: 11px;
    font-weight: 900;
}

.register-page {
    padding: 30px 4vw 50px;
}

.register-layout {
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 390px minmax(0, 1fr);
    gap: 22px;
    align-items: start;
}

.register-info,
.register-form-card {
    border: 1px solid var(--line);
    border-radius: 22px;
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.06);
}

.register-info {
    padding: 30px;
    position: sticky;
    top: 22px;
    background:
        radial-gradient(circle at top right, rgba(49, 196, 255, 0.22), transparent 36%),
        linear-gradient(145deg, #21483b, #12352d);
    color: white;
}

.eyebrow {
    display: block;
    margin-bottom: 6px;
    color: var(--blue);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.eyebrow.light {
    color: var(--cyan);
}

.register-info h1 {
    margin-bottom: 15px;
    font-size: 37px;
    line-height: 1.08;
}

.lead {
    margin-bottom: 22px;
    color: #dcebe0;
    font-size: 14px;
    line-height: 1.6;
    font-weight: 700;
}

.benefits-grid {
    display: grid;
    gap: 11px;
    margin-bottom: 18px;
}

.benefits-grid article {
    padding: 14px;
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 12px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.07);
}

.benefits-grid article > span {
    width: 38px;
    height: 38px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 12px;
    background: var(--cyan);
    color: var(--navy);
    font-size: 10px;
    font-weight: 900;
}

.benefits-grid h3 {
    margin-bottom: 4px;
    font-size: 14px;
}

.benefits-grid p {
    color: #dcebe0;
    font-size: 11px;
    line-height: 1.5;
    font-weight: 700;
}

.security-card {
    padding: 16px;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.10);
}

.security-card > span {
    display: block;
    margin-bottom: 5px;
    color: var(--cyan);
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
}

.security-card h3 {
    margin-bottom: 8px;
    font-size: 15px;
}

.security-card ul {
    padding-left: 18px;
    color: #dcebe0;
    font-size: 10px;
    line-height: 1.8;
    font-weight: 700;
}

.register-form-card {
    padding: 28px;
    background: white;
}

.form-heading {
    margin-bottom: 22px;
}

.form-heading h2 {
    margin-bottom: 7px;
    font-size: clamp(32px, 4vw, 44px);
    line-height: 1;
}

.form-heading p {
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.alert-error {
    margin-bottom: 18px;
    padding: 14px 16px;
    border: 1px solid #fecaca;
    border-radius: 13px;
    background: #fee2e2;
    color: #991b1b;
    font-size: 12px;
    font-weight: 900;
}

.form-section {
    margin-bottom: 18px;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #fbfdff;
}

.section-title {
    margin-bottom: 17px;
    display: flex;
    gap: 11px;
    align-items: flex-start;
}

.section-title > span {
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 11px;
    background: var(--blue);
    color: white;
    font-size: 10px;
    font-weight: 900;
}

.section-title h3 {
    margin-bottom: 4px;
    font-size: 19px;
}

.section-title p {
    color: var(--muted);
    font-size: 10px;
    font-weight: 700;
}

.form-grid,
.location-grid {
    display: grid;
    gap: 14px;
}

.form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.location-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.form-group {
    min-width: 0;
}

.form-group label {
    display: block;
    margin-bottom: 7px;
    color: var(--text);
    font-size: 11px;
    font-weight: 900;
}

.form-group input,
.form-group select {
    width: 100%;
    height: 50px;
    padding: 0 13px;
    border: 1px solid var(--line);
    border-radius: 12px;
    outline: none;
    background: white;
    color: var(--text);
    font-size: 12px;
    font-weight: 700;
    transition: 0.2s ease;
}

.form-group input:focus,
.form-group select:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.10);
}

.field-message {
    display: block;
    min-height: 15px;
    margin-top: 6px;
    color: var(--muted);
    font-size: 9px;
    line-height: 1.4;
    font-weight: 700;
}

.field-message.success {
    color: var(--green);
}

.field-message.error {
    color: var(--red);
}

.password-field {
    position: relative;
}

.password-field input {
    padding-right: 78px;
}

.toggle-password {
    height: 34px;
    padding: 0 10px;
    position: absolute;
    top: 8px;
    right: 8px;
    border: none;
    border-radius: 9px;
    background: #eef4ff;
    color: var(--blue-dark);
    font-size: 9px;
    font-weight: 900;
    cursor: pointer;
}

.password-strength {
    margin-top: 8px;
}

.strength-track {
    width: 100%;
    height: 6px;
    overflow: hidden;
    border-radius: 999px;
    background: #e2e8f0;
}

.strength-track span {
    width: 0;
    height: 100%;
    display: block;
    border-radius: inherit;
    transition: 0.25s ease;
}

.strength-track span.weak {
    background: var(--red);
}

.strength-track span.medium {
    background: var(--orange);
}

.strength-track span.strong {
    background: var(--green);
}

.password-strength small {
    display: block;
    margin-top: 6px;
    color: var(--muted);
    font-size: 9px;
    font-weight: 700;
}

.privacy-card {
    margin-bottom: 16px;
    padding: 16px;
    border: 1px solid #bedac4;
    border-radius: 15px;
    background: #edf5ed;
}

.privacy-card > span {
    display: block;
    margin-bottom: 5px;
    color: #1a543a;
    font-size: 9px;
    font-weight: 900;
    text-transform: uppercase;
}

.privacy-card h3 {
    margin-bottom: 5px;
    color: #174832;
    font-size: 15px;
}

.privacy-card p {
    color: #174832;
    font-size: 10px;
    line-height: 1.5;
    font-weight: 700;
}

.terms {
    margin-bottom: 16px;
    display: flex;
    gap: 9px;
    align-items: flex-start;
    color: #475569;
    font-size: 10px;
    line-height: 1.5;
    font-weight: 700;
}

.terms input {
    width: 17px;
    height: 17px;
    margin-top: 1px;
    flex-shrink: 0;
    accent-color: var(--blue);
}

.terms a {
    color: var(--blue);
    font-weight: 900;
}

.submit-button {
    width: 100%;
    min-height: 54px;
    border: none;
    border-radius: 13px;
    background: var(--blue);
    color: white;
    font-size: 13px;
    font-weight: 900;
    cursor: pointer;
    transition: 0.2s ease;
}

.submit-button:hover {
    transform: translateY(-2px);
    background: var(--blue-dark);
    box-shadow: 0 12px 26px rgba(37, 99, 235, 0.24);
}

.submit-note {
    margin-top: 8px;
    color: var(--muted);
    text-align: center;
    font-size: 9px;
    font-weight: 700;
}

.mobile-login-button {
    display: none;
    width: 100%;
    min-height: 48px;
    margin-top: 12px;
    justify-content: center;
    align-items: center;
    border-radius: 12px;
    background: #eef4ff;
    color: var(--blue-dark);
    font-size: 11px;
    font-weight: 900;
}

@media (max-width: 1000px) {
    .register-layout {
        grid-template-columns: 330px minmax(0, 1fr);
    }

    .location-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 820px) {
    .auth-topbar {
        padding: 12px 14px;
    }

    .topbar-actions span {
        display: none;
    }

    .register-page {
        padding: 20px 14px 40px;
    }

    .register-layout {
        grid-template-columns: 1fr;
    }

    .register-info {
        display: none;
    }

    .register-form-card {
        padding: 20px;
    }

    .mobile-login-button {
        display: flex;
    }
}

@media (max-width: 600px) {
    .topbar-actions a {
        padding: 0 11px;
        font-size: 10px;
    }

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

    .form-section {
        padding: 16px;
    }

    .register-form-card {
        border-radius: 18px;
    }
}