/* Graystone Registry — standalone private client portal
   Self-contained: does not depend on main.css, by design (separate environment). */

:root {
    --gs-charcoal: #1E1B16;
    --gs-charcoal-deep: #17140F;
    --gs-gold: #C8A96B;
    --gs-gold-rgb: 200, 169, 107;
    --gs-ivory: #F5F2EA;
    --gs-ivory-rgb: 245, 242, 234;
    --gs-stone: #BFC3C9;
    --gs-stone-rgb: 191, 195, 201;
}

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

html,
body {
    margin: 0;
    padding: 0;
    height: 100%;
}

body {
    background-color: var(--gs-charcoal);
    color: var(--gs-ivory);
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Topbar */
.registry-topbar {
    display: flex;
    align-items: center;
    padding: 1.75rem clamp(1.5rem, 4vw, 3rem);
    flex: 0 0 auto;
}

.registry-logo {
    display: flex;
    align-items: center;
}

.registry-logo img {
    height: 39px;
    width: auto;
}

/* Main split layout */
.registry-main {
    flex: 1 1 auto;
    display: flex;
    min-height: 0;
}

.registry-image {
    position: relative;
    flex: 1 1 52%;
    overflow: hidden;
    background-color: var(--gs-charcoal-deep);
}

.registry-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.registry-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to right, rgba(23, 20, 15, 0) 68%, rgba(23, 20, 15, 0.35) 100%),
        rgba(23, 20, 15, 0.22);
    pointer-events: none;
}

.registry-panel {
    flex: 1 1 48%;
    display: flex;
    align-items: center;
    align-items: safe center;
    overflow-y: auto;
    padding: clamp(2.5rem, 5vw, 6rem);
}

.registry-content {
    width: 100%;
    max-width: 448px;
}

.registry-eyebrow {
    display: block;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--gs-gold);
    margin-bottom: 0.9rem;
}

.registry-heading {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 500;
    font-size: clamp(2.25rem, 3.4vw, 2.75rem);
    line-height: 1.15;
    letter-spacing: -0.01em;
    color: var(--gs-ivory);
    margin: 0 0 24px;
}

.registry-divider {
    width: 48px;
    height: 2px;
    background-color: var(--gs-gold);
    margin: 1.5rem 0;
}

.registry-intro {
    font-weight: 300;
    font-size: 1rem;
    line-height: 1.7;
    color: rgba(var(--gs-stone-rgb), 0.85);
    max-width: 380px;
    margin: 0 0 2.25rem;
}

/* Messages */
.registry-message {
    margin: 0 0 1.5rem;
    padding: 0.85rem 1rem;
    border-radius: 8px;
    font-size: 0.875rem;
    line-height: 1.5;
}

.registry-message--error {
    background-color: rgba(217, 122, 108, 0.1);
    border: 1px solid rgba(217, 122, 108, 0.28);
    color: #E39385;
}

.registry-message--success {
    background-color: rgba(var(--gs-gold-rgb), 0.1);
    border: 1px solid rgba(var(--gs-gold-rgb), 0.28);
    color: var(--gs-gold);
}

/* Form */
.registry-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.registry-field-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.registry-field label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: rgba(var(--gs-ivory-rgb), 0.88);
    margin-bottom: 0.5rem;
}

.registry-field-header label {
    margin-bottom: 0;
}

.registry-forgot {
    font-size: 0.8125rem;
    font-weight: 400;
    color: var(--gs-gold);
}

.registry-forgot:hover {
    text-decoration: underline;
}

.registry-field input {
    width: 100%;
    background-color: rgba(255, 255, 255, 0.045);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 5px;
    padding: 0.9rem 1rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 300;
    color: var(--gs-ivory);
    transition: border-color 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

.registry-field input::placeholder {
    color: rgba(255, 255, 255, 0.32);
}

.registry-field input:focus {
    outline: none;
    border-color: var(--gs-gold);
    background-color: rgba(255, 255, 255, 0.06);
    box-shadow: 0 0 0 3px rgba(var(--gs-gold-rgb), 0.18);
}

.registry-submit {
    width: 100%;
    border: none;
    border-radius: 5px;
    background-color: #C2A773;
    color: var(--gs-charcoal-deep);
    padding: 0.95rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    cursor: pointer;
    margin-top: 0.25rem;
    transition: filter 0.25s ease, transform 0.25s ease;
}

.registry-submit:hover {
    filter: brightness(1.08);
    transform: translateY(-1px);
}

.registry-submit:active {
    transform: translateY(0);
}

/* Security note */
.registry-security {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    margin-top: 2.25rem;
}

.registry-security p {
    margin: 0;
    font-size: 0.8125rem;
    line-height: 1.55;
    color: rgba(var(--gs-stone-rgb), 0.85);
}

/* Responsive */
@media (max-width: 991px) {
    .registry-main {
        flex-direction: column;
    }

    .registry-image {
        flex: 0 0 auto;
        height: 38vh;
        min-height: 260px;
    }

    .registry-image::after {
        background:
            linear-gradient(to bottom, rgba(23, 20, 15, 0) 55%, rgba(23, 20, 15, 0.4) 100%),
            rgba(23, 20, 15, 0.22);
    }

    .registry-panel {
        flex: 1 1 auto;
        padding: 2.75rem clamp(1.5rem, 5vw, 3rem) 3rem;
    }

    .registry-content {
        max-width: 480px;
    }
}

@media (max-width: 480px) {
    .registry-topbar {
        padding: 1.5rem 1.25rem;
    }

    .registry-panel {
        padding: 2.25rem 1.25rem 2.75rem;
    }

    .registry-field-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.35rem;
    }
}
