﻿:root {
    --brand: #007ec7;
    --primary-ink: #0f2b46;
    --muted: #6b7a8c;
    --accent: #2a72ff;
}

body {
    font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji","Segoe UI Emoji";
    color: var(--primary-ink);
    background:
        radial-gradient(circle at top left, rgba(42, 114, 255, 0.10), transparent 22%),
        radial-gradient(circle at 90% 10%, rgba(0, 126, 199, 0.12), transparent 18%),
        linear-gradient(180deg, #f8fbff 0%, #eef4fb 100%);
}

body.public-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.brand {
    color: var(--brand);
}

.logo-text {
    font-weight: 800;
    font-size: 1.5rem;
}

.app-navbar {
    background: rgba(248, 251, 255, 0.88);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(15, 43, 70, 0.08);
}

.public-page-main {
    flex: 1 0 auto;
}

.auth-layout-main {
    padding: 1.5rem 0 2.5rem;
    position: relative;
    overflow: hidden;
}

.auth-layout-main::before,
.auth-layout-main::after {
    content: "";
    position: absolute;
    pointer-events: none;
    border: 1px solid rgba(42, 114, 255, 0.14);
    border-radius: 999px;
}

.auth-layout-main::before {
    width: 520px;
    height: 260px;
    top: -110px;
    right: -120px;
    transform: rotate(-14deg);
}

.auth-layout-main::after {
    width: 360px;
    height: 190px;
    left: -110px;
    bottom: -70px;
    transform: rotate(-10deg);
}

.auth-layout-main > .container-fluid {
    position: relative;
    z-index: 1;
}

.public-footer {
    margin-top: auto;
    border-top: 1px solid rgba(15, 43, 70, 0.08);
    background: rgba(248, 251, 255, 0.92);
}

.btn-brand,
.btn-primary {
    background: linear-gradient(135deg, var(--brand), #005fa3);
    border: 0;
    color: #fff;
    box-shadow: 0 12px 28px rgba(0, 95, 163, 0.20);
}

.btn-brand:hover,
.btn-brand:focus,
.btn-brand.active,
.btn-primary:hover,
.btn-primary:focus,
.btn-primary.active {
    background: linear-gradient(135deg, #005fa3, #0d4f8b);
    color: #fff;
}

.form-control:focus {
    border-color: #007ec7;
    box-shadow: none;
}

.box-form {
    padding: 30px;
    width: auto;
    max-width: 450px;
    margin: 50px auto;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.register-form {
    width: min(100%, 1120px);
    max-width: 1120px;
    margin: 0 auto 1rem;
    padding: 38px 64px 34px;
    border: 1px solid rgba(255, 255, 255, 0.85);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 28px 80px rgba(15, 43, 70, 0.12);
}

.register-title {
    margin: 0;
    color: #0f2b46;
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.15;
    text-align: center;
}

.register-subtitle {
    margin-top: 0.65rem;
    color: #3d4b73;
    font-size: 1rem;
    text-align: center;
}

.register-form__body {
    margin-top: 1rem;
}

.trial-plan-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.trial-plan-card {
    position: relative;
    display: grid;
    grid-template-columns: 24px 58px 1fr;
    gap: 1.1rem;
    align-items: center;
    padding: 16px;
    overflow: hidden;
    border: 1px solid #dbe3ef;
    border-radius: 12px;
    background: #fff;
    color: #223457;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.trial-plan-card:hover {
    border-color: rgba(21, 101, 238, 0.55);
    box-shadow: 0 16px 36px rgba(15, 43, 70, 0.08);
    transform: translateY(-1px);
}

.register-plan-input:checked + .trial-plan-card {
    border-color: #1565ee;
    box-shadow: 0 18px 42px rgba(21, 101, 238, 0.14);
}

.trial-plan-check {
    width: 20px;
    height: 20px;
    border: 1.5px solid #a9b7cc;
    border-radius: 50%;
    background: #fff;
}

.register-plan-input:checked + .trial-plan-card .trial-plan-check {
    border: 2px solid #1565ee;
    box-shadow: inset 0 0 0 4px #fff;
    background: #1565ee;
}

.trial-plan-icon {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: linear-gradient(135deg, #eaf2ff, #f4f8ff);
    color: #145be7;
    font-size: 1.75rem;
}

.plan-pro .trial-plan-icon {
    background: linear-gradient(135deg, #f3eaff, #f8f1ff);
    color: #8d4cf6;
}

.trial-plan-copy {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    min-width: 0;
}

.trial-plan-name {
    color: #0f2b46;
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.2;
}

.register-plan-input:checked + .trial-plan-card .trial-plan-name {
    color: #0f5bea;
}

.trial-plan-description {
    color: #3d4b73;
    font-size: 0.875rem;
    line-height: 1.55;
}

.trial-plan-badge {
    position: absolute;
    top: 0;
    right: 0;
    width: 76px;
    height: 76px;
    overflow: hidden;
    border-top-right-radius: 12px;
}

.trial-plan-badge span {
    position: absolute;
    top: 13px;
    right: -31px;
    width: 112px;
    padding: 4px 0;
    transform: rotate(45deg);
    background: #1565ee;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 800;
    text-align: center;
}

.register-field-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 1.75rem;
    row-gap: 1rem;
}

.register-field .form-label {
    margin-bottom: 0.65rem;
    color: #203151;
    font-size: 1rem;
    font-weight: 500;
}

.register-input {
    position: relative;
}

.register-input > i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #91a0ba;
    font-size: 1rem;
    z-index: 2;
}

.register-input--textarea > i {
    top: 18px;
    transform: none;
}

.register-form .form-control {
    height: 36px;
    padding: 0.375rem 0.75rem 0.375rem 42px;
    border: 1px solid #dbe3ef;
    border-radius: 8px;
    color: #203151;
    font-size: 1rem;
    background: #fff;
    box-shadow: 0 7px 18px rgba(15, 43, 70, 0.04);
}

.register-form .form-control::placeholder {
    color: #7b8aa7;
}

.register-form .form-control:focus {
    border-color: #1565ee;
    box-shadow: 0 0 0 3px rgba(21, 101, 238, 0.10);
}

.register-form textarea.form-control {
    min-height: 78px;
    height: auto;
    padding-top: 0.9rem;
    resize: vertical;
}

.register-submit-wrap {
    margin-top: 1.25rem;
}

.register-submit.btn {
    height: 36px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 700;
    /*background: linear-gradient(135deg, #1769ff, #0053e8);*/
    box-shadow: 0 18px 34px rgba(21, 101, 238, 0.24);
}

.register-submit.btn:hover,
.register-submit.btn:focus {
    background: linear-gradient(135deg, #0f5bea, #0047cd);
}

.register-submit .bi {
    font-size: 1.1rem;
}

.register-login-link {
    margin-top: 1.4rem;
    text-align: center;
}

.register-login-link a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #0f5bea !important;
    font-size: 1.05rem;
    font-weight: 700;
}

nav .active.nav-link {
    background: #d9e6ff;
    border-radius: 8px;
    color: #0047ad !important;
}

nav .nav-link:hover {
    background: #d9e6ff;
    border-radius: 8px;
}

.nav-link {
    color: var(--primary-ink);
}

.nav-link:hover {
    color: var(--brand);
}

.navbar-toggler {
    border: 1px solid rgba(15, 43, 70, 0.12);
    border-radius: 12px;
    padding: 0.45rem 0.7rem;
}

.navbar-toggler:focus {
    box-shadow: none;
}

@media (max-width: 991.98px) {
    .register-form {
        padding: 36px 32px 30px;
    }

    .trial-plan-grid {
        gap: 1rem;
    }

    .trial-plan-card {
        grid-template-columns: 22px 52px 1fr;
        gap: 0.9rem;
        padding: 12px;
    }

    .trial-plan-icon {
        width: 52px;
        height: 52px;
        font-size: 1.55rem;
    }

    .register-field-grid {
        column-gap: 1rem;
    }

    .public-navbar .navbar-collapse {
        margin-top: 0.85rem;
        padding: 1rem;
        border: 1px solid rgba(15, 43, 70, 0.08);
        border-radius: 20px;
        background: rgba(255, 255, 255, 0.96);
        box-shadow: 0 18px 40px rgba(15, 43, 70, 0.08);
    }

    .public-navbar .navbar-nav {
        align-items: stretch !important;
        gap: 0.5rem;
    }

    .public-navbar .nav-item {
        text-align: left !important;
    }

    .public-navbar .btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 767.98px) {
    .register-title {
        font-size: 1.75rem;
    }

    .trial-plan-grid,
    .register-field-grid {
        grid-template-columns: 1fr;
    }

    .trial-plan-grid {
        margin-bottom: 1rem;
    }
}

@media (max-width: 576px) {
    .auth-layout-main {
        padding: 1rem 0 2rem;
    }

    .box-form {
        padding: 1.25rem;
        margin: 1rem auto 0;
        border-radius: 20px;
    }

    .register-form {
        padding: 1.4rem;
        border-radius: 20px;
    }

    .register-subtitle {
        font-size: 1rem;
    }

    .trial-plan-card {
        min-height: 116px;
        padding: 8px;
    }

    .register-form .form-control {
        height: 36px;
        padding-left: 42px;
    }

    .register-submit.btn {
        height: 36px;
        font-size: 1rem;
    }

    .public-footer {
        padding-bottom: calc(1rem + env(safe-area-inset-bottom));
    }
}
