/* Tenant registration page. */

.reg-wrap {
    display: flex;
    flex-direction: row;
    min-height: 100vh;
    background: #ffffff;
    color: #1a1626;
}

/* ---- Form column ---------------------------------------------------------- */
.reg-form-col {
    flex: 0 0 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 56px;
    min-height: 100vh;
}

.reg-form-inner {
    width: 100%;
    max-width: 468px;
}

.reg-brand {
    display: flex;
    align-items: center;
    gap: 11px;
    margin-bottom: 34px;
}

.reg-brand-logo {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: linear-gradient(150deg, #a05aff 0%, #6d28d9 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 800;
    font-size: 20px;
    box-shadow: 0 6px 16px rgba(160, 90, 255, 0.35);
}

.reg-brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.reg-brand-name {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #1a1626;
}

.reg-brand-by {
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: #a9a3b8;
}

.reg-title {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.15;
    margin: 0 0 8px;
    color: #1a1626;
}

.reg-subtitle {
    font-size: 15px;
    line-height: 1.55;
    color: #6b6478;
    margin: 0 0 30px;
}

.reg-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.reg-section {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.reg-section-head {
    display: flex;
    align-items: center;
    gap: 9px;
}

.reg-step-num {
    width: 22px;
    height: 22px;
    border-radius: 7px;
    background: #f2e9ff;
    color: #8236e8;
    font-size: 12px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
}

.reg-step-label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #8a8397;
}

.reg-field {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.reg-field-label {
    font-size: 13px;
    font-weight: 600;
    color: #3b3547;
}

.reg-input {
    width: 100%;
    padding: 13px 15px;
    border: 1.5px solid #e6e2ee;
    border-radius: 12px;
    font-size: 15px;
    font-family: inherit;
    color: #1a1626;
    background: #fff;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.reg-input::placeholder {
    color: #a9a3b8;
}

.reg-input:focus {
    border-color: #a05aff;
    box-shadow: 0 0 0 4px rgba(160, 90, 255, 0.13);
}

.reg-select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'><path d='M2 4l4 4 4-4' stroke='%23a9a3b8' stroke-width='1.6' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>");
    background-repeat: no-repeat;
    background-position: right 15px center;
    cursor: pointer;
}

/* ---- Time-zone picker ----------------------------------------------------- */
/* The native <select> is the no-JavaScript baseline and posts the value; app.js builds .tzc over it and
   this hides the select once that has happened, so a browser with scripting off still sees a control. */
.tz-picker {
    position: relative;
}

.tz-picker[data-tz-ready="1"] .tz-native {
    display: none;
}

.tzc {
    position: relative;
}

/* These elements are shown and hidden through their `hidden` attribute in app.js. The rules below set
   an explicit `display`, which beats the browser's built-in `[hidden] { display: none }` - so without
   this the panel would sit open on page load and search would never hide a row. Restore it. */
.tzc-panel[hidden],
.tzc-option[hidden],
.tzc-empty[hidden] {
    display: none;
}

.tzc-control {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px 15px;
    border: 1.5px solid #e6e2ee;
    border-radius: 12px;
    background: #fff;
    font-family: inherit;
    font-size: 15px;
    color: #1a1626;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.tzc-control:focus,
.tzc.is-open .tzc-control {
    outline: none;
    border-color: #a05aff;
    box-shadow: 0 0 0 4px rgba(160, 90, 255, 0.13);
}

.tzc-value {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.tzc-control.is-placeholder .tzc-value {
    color: #a9a3b8;
}

.tzc-value-text {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tzc-value-offset {
    flex: none;
    font-family: "JetBrains Mono", monospace;
    font-size: 12.5px;
    color: #8236e8;
    background: #f4eefe;
    padding: 2px 8px;
    border-radius: 999px;
}

.tzc-caret {
    flex: none;
    color: #a9a3b8;
    font-size: 15px;
    transition: transform 0.15s;
}

.tzc.is-open .tzc-caret {
    transform: rotate(180deg);
}

.tzc-panel {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    z-index: 30;
    display: flex;
    flex-direction: column;
    max-height: 340px;
    background: #fff;
    border: 1.5px solid #e6e2ee;
    border-radius: 12px;
    box-shadow: 0 18px 40px -12px rgba(26, 22, 38, 0.28);
    overflow: hidden;
}

.tzc-search {
    flex: none;
    margin: 10px;
    padding: 10px 13px;
    border: 1.5px solid #e6e2ee;
    border-radius: 10px;
    font-family: inherit;
    font-size: 14px;
    color: #1a1626;
    outline: none;
}

.tzc-search::placeholder {
    color: #a9a3b8;
}

.tzc-search:focus {
    border-color: #a05aff;
    box-shadow: 0 0 0 3px rgba(160, 90, 255, 0.12);
}

.tzc-list {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    list-style: none;
    margin: 0;
    padding: 0 6px 6px;
}

.tzc-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 11px;
    border-radius: 9px;
    cursor: pointer;
}

.tzc-option.is-active {
    background: #f4eefe;
}

.tzc-opt-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.tzc-opt-city {
    font-size: 14px;
    font-weight: 600;
    color: #1a1626;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tzc-opt-area {
    font-size: 12px;
    color: #8a8397;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tzc-opt-offset {
    flex: none;
    font-family: "JetBrains Mono", monospace;
    font-size: 12px;
    color: #6b6478;
}

.tzc-empty {
    padding: 18px 12px;
    text-align: center;
    font-size: 13px;
    color: #a9a3b8;
}

.reg-field-row {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.reg-field-grow {
    flex: 1 1 180px;
}

.reg-pw-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.reg-pw-input {
    padding-right: 60px;
}

.reg-pw-toggle {
    position: absolute;
    right: 8px;
    padding: 6px 9px;
    background: transparent;
    border: none;
    color: #8236e8;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 8px;
}

.reg-pw-toggle:hover {
    background: #f4eefe;
}

/* ---- Owner notice --------------------------------------------------------- */
.reg-owner-notice {
    display: flex;
    gap: 13px;
    padding: 15px 16px;
    background: #f7f1ff;
    border: 1px solid #e7d6ff;
    border-radius: 14px;
}

.reg-owner-icon {
    flex: none;
    width: 30px;
    height: 30px;
    border-radius: 9px;
    background: linear-gradient(150deg, #a05aff, #6d28d9);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 15px;
}

.reg-owner-title {
    font-size: 13.5px;
    font-weight: 700;
    color: #4b1f8a;
    margin-bottom: 3px;
}

.reg-owner-text {
    font-size: 12.8px;
    line-height: 1.5;
    color: #6b4a9e;
    margin: 0;
}

/* ---- Error, submit, footer ------------------------------------------------ */
.reg-error {
    font-size: 13px;
    color: #c0392b;
    background: #fdecea;
    border: 1px solid #f7c9c3;
    padding: 9px 13px;
    border-radius: 10px;
    margin-top: -6px;
}

.reg-submit {
    width: 100%;
    padding: 15px;
    margin-top: 2px;
    background: #a05aff;
    color: #fff;
    border: none;
    border-radius: 12px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 8px 20px -6px rgba(160, 90, 255, 0.5);
    transition: background 0.15s;
}

.reg-submit:hover {
    background: #8f43f5;
}

.reg-submit:disabled {
    cursor: default;
    opacity: 0.9;
}

.reg-terms {
    font-size: 12px;
    line-height: 1.5;
    color: #a9a3b8;
    text-align: center;
    margin: 0;
}

.reg-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 26px 0;
}

.reg-divider-line {
    flex: 1;
    height: 1px;
    background: #eceaf1;
}

.reg-divider-text {
    font-size: 12px;
    color: #a9a3b8;
    font-weight: 500;
}

.reg-signin {
    font-size: 13.5px;
    color: #8a8397;
    text-align: center;
    margin: 0;
}

.reg-signin a {
    font-weight: 600;
}

.reg-copyright {
    font-size: 12px;
    color: #b6b0c2;
    text-align: center;
    margin: 40px 0 0;
}

/* ---- Success panel -------------------------------------------------------- */
.reg-success {
    display: flex;
    gap: 13px;
    padding: 16px 18px;
    background: #e9f9f0;
    border: 1px solid #b8ebcd;
    border-radius: 14px;
    color: #14663f;
}

.reg-success-title {
    font-size: 15px;
    font-weight: 700;
    margin: 0 0 4px;
}

.reg-success-text {
    font-size: 13px;
    line-height: 1.5;
    margin: 0;
    color: #2e7d57;
}

/* ---- Marketing panel ------------------------------------------------------ */
.reg-panel {
    flex: 1 1 50%;
    display: flex;
    position: relative;
    overflow: hidden;
    background: linear-gradient(155deg, #a05aff 0%, #6d28d9 100%);
    color: #fff;
    padding: 64px;
    /* Top-aligned, not centred: the panel grows to match the form column, so a centred block would
       drift downwards as the form gets taller. Pinning it up keeps the marketing copy in view. */
    align-items: flex-start;
    justify-content: center;
}

.reg-panel-glow-a {
    position: absolute;
    top: -120px;
    right: -80px;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.28) 0%, transparent 70%);
    animation: mob-glow 7s ease-in-out infinite;
}

.reg-panel-glow-b {
    position: absolute;
    bottom: -140px;
    left: -100px;
    width: 380px;
    height: 380px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(109, 40, 217, 0.5) 0%, transparent 70%);
}

.reg-panel-inner {
    position: relative;
    z-index: 2;
    max-width: 470px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.reg-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.24);
    font-size: 12.5px;
    font-weight: 600;
    margin-bottom: 26px;
}

.reg-badge-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.25);
}

.reg-panel-title {
    font-size: 38px;
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin: 0 0 16px;
}

.reg-panel-text {
    font-size: 16px;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.82);
    margin: 0 0 40px;
    max-width: 410px;
}

.reg-console {
    width: 100%;
    max-width: 400px;
    align-self: center;
}

.reg-console-frame {
    width: 100%;
    border-radius: 16px;
    background: linear-gradient(160deg, #241033, #3a1656);
    padding: 12px;
    box-shadow: 0 40px 80px -20px rgba(20, 4, 40, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.08);
    animation: mob-float 6s ease-in-out infinite;
}

.reg-console-dots {
    display: flex;
    gap: 6px;
    padding: 4px 4px 12px;
}

.reg-console-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.28);
}

.reg-console-dot:nth-child(2) {
    background: rgba(255, 255, 255, 0.2);
}

.reg-console-dot:nth-child(3) {
    background: rgba(255, 255, 255, 0.14);
}

.reg-console-screen {
    height: 216px;
    border-radius: 11px;
    overflow: hidden;
    position: relative;
    background-image: repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.07) 0 12px, rgba(255, 255, 255, 0.02) 12px 24px);
    background-color: #2c123f;
    display: flex;
    align-items: center;
    justify-content: center;
}

.reg-console-label {
    font-family: ui-monospace, 'SF Mono', Menlo, monospace;
    font-size: 11px;
    letter-spacing: 0.04em;
    color: rgba(255, 255, 255, 0.5);
}

.reg-features {
    display: flex;
    gap: 22px;
    margin-top: 38px;
    flex-wrap: wrap;
}

.reg-feature {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
}

.reg-feature-dot {
    width: 8px;
    height: 8px;
    border-radius: 2px;
    background: #fff;
}

/* ---- Animations ----------------------------------------------------------- */
@keyframes mob-float {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-12px);
    }
}

@keyframes mob-glow {
    0%, 100% {
        opacity: 0.55;
    }

    50% {
        opacity: 0.9;
    }
}

/* ---- Responsive ----------------------------------------------------------- */
@media (max-width: 979px) {
    .reg-wrap {
        flex-direction: column;
    }

    .reg-form-col {
        flex: 1 1 auto;
        padding: 44px 24px;
        min-height: auto;
    }

    .reg-panel {
        display: none;
    }
}
