/* HomeTrees CRM login — matches public site AuthPageShell (hero logo) */

@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Inter:wght@400;500;600;700&display=swap');

:root {
    --ht-cream: #faf8f5;
    --ht-forest: #1f5230;
    --ht-bark: #2a1a12;
    --ht-sage: #9ba88e;
    --ht-trunk: #5c3a21;
    --ht-mist: #f1ede6;
    --ht-forest-ring: rgba(31, 82, 48, 0.2);
    --ht-shadow: 0 12px 40px -12px rgba(31, 82, 48, 0.18);
    --ht-btn-shadow: 0 8px 24px -6px rgba(31, 82, 48, 0.45);
}

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

body.crm-auth-premium {
    margin: 0;
    min-height: 100vh;
    font-family: 'Inter', ui-sans-serif, system-ui, sans-serif;
    color: var(--ht-trunk);
    background: var(--ht-cream);
    -webkit-font-smoothing: antialiased;
}

.crm-auth-premium__layout {
    display: grid;
    min-height: 100vh;
}

@media (min-width: 1024px) {
    .crm-auth-premium__layout {
        grid-template-columns: 1fr 1fr;
    }
}

/* Left brand panel */
.crm-auth-premium__brand {
    display: none;
    position: relative;
    overflow: hidden;
    flex-direction: column;
    justify-content: space-between;
    padding: 2.5rem 3.5rem 2.5rem;
}

@media (min-width: 1024px) {
    .crm-auth-premium__brand {
        display: flex;
    }
}

.crm-auth-premium__brand-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--ht-forest) 0%, var(--ht-forest) 45%, var(--ht-bark) 100%);
}

.crm-auth-premium__brand-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 70% 55% at 50% 28%, rgba(107, 168, 79, 0.38), transparent 70%);
    pointer-events: none;
}

.crm-auth-premium__brand-dots {
    position: absolute;
    inset: 0;
    opacity: 0.07;
    pointer-events: none;
    background-image: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.9) 1px, transparent 0);
    background-size: 28px 28px;
}

.crm-auth-premium__brand-inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex: 1;
    flex-direction: column;
    justify-content: center;
    max-width: 28rem;
    margin: 0 auto;
    width: 100%;
}

.crm-auth-premium__hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.crm-auth-premium__hero-logo-wrap {
    position: relative;
}

.crm-auth-premium__hero-glow {
    position: absolute;
    inset: -1.5rem;
    border-radius: 2rem;
    opacity: 0.6;
    filter: blur(28px);
    background: radial-gradient(circle, rgba(255, 255, 255, 0.22), transparent 68%);
    pointer-events: none;
}

.crm-auth-premium__hero-logo-plate {
    position: relative;
    padding: 0.65rem;
    border-radius: 1.35rem;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: #fff;
    box-shadow:
        0 28px 70px -20px rgba(0, 0, 0, 0.45),
        0 0 0 1px rgba(255, 255, 255, 0.1);
}

.crm-auth-premium__hero-logo {
    display: block;
    width: clamp(10.75rem, 34vh, 17.75rem);
    height: clamp(10.75rem, 34vh, 17.75rem);
    object-fit: contain;
    object-position: center;
    border-radius: 0.85rem;
}

.crm-auth-premium__brand-name {
    margin: 1.75rem 0 0;
    font-family: 'Instrument Serif', Georgia, serif;
    font-size: clamp(1.85rem, 2.4vw, 2.35rem);
    font-style: italic;
    font-weight: 400;
    line-height: 1;
    letter-spacing: -0.02em;
    color: #fff;
}

.crm-auth-premium__pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    width: fit-content;
    margin-top: 1.25rem;
    padding: 0.375rem 1rem;
    border-radius: 9999px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(6px);
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.9);
}

.crm-auth-premium__pill svg {
    color: var(--ht-sage);
    flex-shrink: 0;
}

.crm-auth-premium__headline {
    margin: 1.5rem 0 0;
    max-width: 22rem;
    font-family: 'Instrument Serif', Georgia, serif;
    font-size: clamp(1.55rem, 2.2vw, 1.85rem);
    font-weight: 400;
    line-height: 1.3;
    color: rgba(255, 255, 255, 0.95);
}

.crm-auth-premium__lead {
    margin: 0.75rem 0 0;
    max-width: 22rem;
    font-size: 0.95rem;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.7);
}

.crm-auth-premium__copyright {
    position: relative;
    z-index: 1;
    margin: 2rem 0 0;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.45);
}

/* Right form panel */
.crm-auth-premium__main {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.crm-auth-premium__mobile-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.25rem 1.25rem;
}

@media (min-width: 1024px) {
    .crm-auth-premium__mobile-header {
        display: none;
    }
}

.crm-auth-premium__mobile-logo {
    width: 3rem;
    height: 3rem;
    overflow: hidden;
    border-radius: 0.75rem;
    border: 1px solid rgba(155, 168, 142, 0.35);
    background: #fff;
    box-shadow: 0 1px 3px rgba(31, 82, 48, 0.08);
}

.crm-auth-premium__mobile-logo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 2px;
}

.crm-auth-premium__mobile-brand {
    font-family: 'Instrument Serif', Georgia, serif;
    font-size: 1.25rem;
    font-style: italic;
    letter-spacing: -0.02em;
    color: var(--ht-forest);
}

.crm-auth-premium__center {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1.25rem 2.5rem;
}

@media (min-width: 640px) {
    .crm-auth-premium__center {
        padding: 2rem 2.5rem;
    }
}

@media (min-width: 1024px) {
    .crm-auth-premium__center {
        padding: 2rem 4rem;
    }
}

.crm-auth-premium__card-wrap {
    width: 100%;
    max-width: 27.5rem;
}

.crm-auth-premium__card {
    padding: 1.75rem;
    border-radius: 1rem;
    border: 1px solid rgba(155, 168, 142, 0.3);
    background: #fff;
    box-shadow: var(--ht-shadow);
}

@media (min-width: 640px) {
    .crm-auth-premium__card {
        padding: 2.25rem;
    }
}

.crm-auth-premium__title {
    margin: 0;
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    color: var(--ht-forest);
}

@media (min-width: 640px) {
    .crm-auth-premium__title {
        font-size: 1.875rem;
    }
}

.crm-auth-premium__subtitle {
    margin: 0.5rem 0 0;
    font-size: 0.9375rem;
    line-height: 1.55;
    color: rgba(92, 58, 33, 0.8);
}

.crm-auth-premium__form {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.crm-auth-premium__field label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--ht-trunk);
}

.crm-auth-premium__field label .crm-auth-premium__req {
    color: #ef4444;
}

.crm-auth-premium .crm-input {
    width: 100%;
    height: 3rem;
    padding: 0 1rem;
    border: 1px solid rgba(155, 168, 142, 0.4);
    border-radius: 0.75rem;
    font-size: 1rem;
    font-family: inherit;
    color: var(--ht-trunk);
    background: #fff;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.crm-auth-premium .crm-input::placeholder {
    color: rgba(92, 58, 33, 0.45);
}

.crm-auth-premium .crm-input:focus {
    outline: none;
    border-color: var(--ht-forest);
    box-shadow: 0 0 0 3px var(--ht-forest-ring);
}

.crm-auth-premium .crm-password-field .crm-input {
    padding-right: 2.75rem;
}

.crm-auth-premium .crm-password-toggle {
    color: rgba(92, 58, 33, 0.6);
}

.crm-auth-premium .crm-password-toggle:hover {
    color: var(--ht-forest);
}

.crm-auth-premium__alert {
    margin-top: 1.5rem;
    margin-bottom: 0;
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    border: 1px solid rgba(239, 68, 68, 0.25);
    background: rgba(254, 242, 242, 0.9);
    font-size: 0.875rem;
    line-height: 1.45;
    color: #b91c1c;
}

.crm-auth-premium__submit {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 3rem;
    margin-top: 0.25rem;
    border: none;
    border-radius: 0.75rem;
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    color: #fff;
    background: var(--ht-forest);
    box-shadow: var(--ht-btn-shadow);
    cursor: pointer;
    transition: background-color 0.15s ease, transform 0.1s ease;
}

.crm-auth-premium__submit:hover {
    background: var(--ht-bark);
}

.crm-auth-premium__submit:active {
    transform: scale(0.99);
}

.crm-auth-premium__footer {
    margin-top: 1.5rem;
    text-align: center;
    font-size: 0.875rem;
    color: var(--ht-trunk);
}

.crm-auth-premium__footer a {
    font-weight: 600;
    color: var(--ht-forest);
    text-decoration: none;
}

.crm-auth-premium__footer a:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}
