@import 'variables.css';

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 60;
    transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    background: transparent;
    border-bottom: 1px solid transparent;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    border-bottom-color: var(--border);
    box-shadow: 0 1px 10px rgba(0, 0, 0, 0.08);
}

.navbar-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 3rem;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 0 0 auto;
    min-width: 0;
    white-space: nowrap;
}

.navbar-brand img {
    max-width: 48px;
    max-height: 38px;
    object-fit: contain;
}

.navbar-brand span {
    font-family: 'DM Serif Display', serif;
    font-size: 1.25rem;
    color: var(--primary-foreground);
    letter-spacing: 0.025em;
    transition: color 0.3s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.navbar.scrolled .navbar-brand span {
    color: var(--foreground);
}

.nav-links {
    display: none;
    flex: 1 1 auto;
    min-width: 0;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    overflow: visible;
    white-space: nowrap;
}

@media (min-width: 768px) {
    .nav-links {
        display: flex;
    }
}

.nav-links a {
    display: inline-block;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.875rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--secondary);
    text-decoration: none;
}

.nav-company-menu {
    position: relative;
    flex: 0 0 auto;
    font-size: 0.875rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
}

.nav-company-menu summary,
.mobile-company-menu summary {
    cursor: pointer;
    list-style: none;
}

.nav-company-menu summary::-webkit-details-marker,
.mobile-company-menu summary::-webkit-details-marker {
    display: none;
}

.nav-company-menu summary::after,
.mobile-company-menu summary::after {
    content: "";
    display: inline-block;
    width: 0.4rem;
    height: 0.4rem;
    margin-inline-start: 0.45rem;
    border-right: 1px solid currentColor;
    border-bottom: 1px solid currentColor;
    transform: translateY(-0.15rem) rotate(45deg);
}

.nav-company-menu[open] summary::after,
.mobile-company-menu[open] summary::after {
    transform: translateY(0.05rem) rotate(225deg);
}

.nav-company-menu summary:hover {
    color: var(--secondary);
}

.navbar.scrolled .nav-company-menu {
    color: rgba(0, 0, 0, 0.72);
}

.navbar.scrolled .nav-company-menu summary:hover {
    color: var(--secondary);
}

.nav-company-submenu {
    position: absolute;
    z-index: 20;
    top: calc(100% + 0.75rem);
    left: 50%;
    display: flex;
    min-width: 13rem;
    flex-direction: column;
    padding: 0.5rem;
    transform: translateX(-50%);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--background);
    box-shadow: 0 0.75rem 1.75rem rgba(0, 0, 0, 0.16);
}

.nav-company-submenu a {
    padding: 0.55rem 0.75rem;
    color: var(--foreground) !important;
    text-align: start;
}

.nav-company-submenu a:hover {
    border-radius: calc(var(--radius) * 0.65);
    background: var(--muted);
    color: var(--secondary) !important;
}

.navbar.scrolled .nav-links a {
    color: rgba(0, 0, 0, 0.72);
}

.navbar.scrolled .nav-links a:hover {
    color: var(--secondary);
}

.navbar-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 0 0 auto;
    min-width: 0;
    white-space: nowrap;
}

.btn-quote {
    flex-shrink: 0;
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    font-size: 0.875rem;
    font-weight: 600;
    background: var(--secondary);
    color: var(--secondary-foreground);
    transition: filter 0.2s, color 0.2s, background 0.2s;
    white-space: nowrap;
}

.btn-quote:hover {
    filter: brightness(1.05);
    text-decoration: none;
}

.cart-link {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.2s, color 0.2s;
    min-width: 0;
}

.cart-link:hover {
    background: rgba(255, 255, 255, 0.2);
    text-decoration: none;
}

.cart-link svg {
    stroke: currentColor;
    transition: stroke 0.2s;
}

.cart-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.6rem;
    height: 1.6rem;
    border-radius: 9999px;
    background: var(--gold-gradient);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0 0.35rem;
    flex-shrink: 0;
}

.navbar.scrolled .cart-link {
    background: rgba(255, 255, 255, 0.94);
    color: #000;
}

.navbar.scrolled .cart-link svg {
    stroke: #000;
}

.navbar.scrolled .cart-count {
    color: #000 !important;
}

.mobile-toggle {
    flex-shrink: 0;
    display: block;
    color: var(--primary-foreground);
    background: transparent;
    border: none;
    padding: 0.35rem;
    transition: color 0.3s;
}

@media (max-width: 767px) {
    .navbar-actions > .btn-quote {
        display: none;
    }
}

.navbar.scrolled .mobile-toggle {
    color: var(--foreground);
}

@media (min-width: 768px) {
    .mobile-toggle {
        display: none;
    }
}

.mobile-menu {
    display: none;
    flex-direction: column;
    gap: 0.75rem;
    background: var(--primary);
    padding: 1rem;
}

.mobile-menu.open {
    display: flex;
}

.mobile-menu a {
    color: rgba(255, 255, 255, 0.92);
    padding: 0.5rem 0;
    font-size: 0.95rem;
    font-weight: 500;
    white-space: nowrap;
}

.mobile-menu a:hover {
    color: var(--secondary);
    text-decoration: none;
}

.mobile-company-menu {
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.95rem;
    font-weight: 500;
}

.mobile-company-menu summary {
    padding: 0.5rem 0;
}

.mobile-company-submenu {
    display: flex;
    flex-direction: column;
    padding-inline-start: 1rem;
}

.mobile-company-submenu a {
    font-size: 0.9rem;
}

.mobile-menu .btn-quote {
    width: 100%;
    text-align: center;
}

@media (min-width: 768px) {
    .mobile-menu {
        display: none !important;
    }
}

/* ============================================
   HERO
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
}

.hero-bg .gradient {
    position: absolute;
    inset: 0;
    background: var(--hero-gradient);
}

.hero-bg img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.2;
    mix-blend-mode: luminosity;
}

.hero-bg .overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(27, 55, 100, 0.95), rgba(27, 55, 100, 0.7), transparent);
}

.hero-content {
    position: relative;
    z-index: 10;
    padding-top: 6rem;
    padding-bottom: 4rem;
    max-width: 42rem;
    color: white;
}

.hero-badge {
    display: inline-block;
    padding: 0.375rem 1rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    background: rgba(196, 155, 58, 0.2);
    color: var(--secondary);
    margin-bottom: 1.5rem;
    border: 1px solid rgba(196, 155, 58, 0.3);
}

.hero h1 {
    font-size: 2.5rem;
    color: var(--primary-foreground);
    margin-bottom: 1.5rem;
}

.hero h1 .accent {
    color: var(--secondary);
}

@media (min-width: 768px) {
    .hero h1 {
        font-size: 3rem;
    }
}

@media (min-width: 1024px) {
    .hero h1 {
        font-size: 3.75rem;
    }
}

.hero p {
    color: rgba(255, 255, 255, 0.75);
    font-size: 1.125rem;
    line-height: 1.7;
    margin-bottom: 2.5rem;
    max-width: 36rem;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.btn-gold {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.875rem;
    background: var(--gold-gradient);
    color: var(--secondary-foreground);
    transition: filter 0.2s;
}

.btn-gold:hover {
    filter: brightness(1.1);
    text-decoration: none;
}

.btn-outline-light {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.875rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: var(--primary-foreground);
    transition: all 0.2s;
}

.btn-outline-light:hover {
    border-color: var(--secondary);
    color: var(--secondary);
    text-decoration: none;
}

.btn-outline-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.875rem;
    border: 2px solid var(--primary);
    color: var(--primary);
    transition: all 0.2s;
}

.btn-outline-primary:hover {
    background: var(--primary);
    color: var(--primary-foreground);
    text-decoration: none;
}

/* ============================================
   SUB-HERO
   ============================================ */
.sub-hero {
    position: relative;
    height: 70vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.sub-hero img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sub-hero .overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(27, 55, 100, 0.9), rgba(27, 55, 100, 0.5), rgba(27, 55, 100, 0.3));
}

.sub-hero-content {
    position: relative;
    z-index: 10;
    color: white;
}

/* ============================================
   STATS / ICON BOXES
   ============================================ */
.stat-card {
    background: var(--card);
    border-radius: 0.75rem;
    padding: 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border);
    text-align: center;
}

.stat-icon {
    width: 3rem;
    height: 3rem;
    border-radius: var(--radius);
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gold-gradient);
    color: var(--secondary-foreground);
}

.stat-value {
    font-family: 'DM Serif Display', serif;
    font-size: 1.5rem;
    color: var(--foreground);
    margin-bottom: 0.25rem;
}

@media (min-width: 768px) {
    .stat-value {
        font-size: 1.875rem;
    }
}

.stat-label {
    font-size: 0.75rem;
    color: var(--muted-foreground);
    line-height: 1.5;
}

.stats-section {
    padding: 5rem 0;
    background: var(--secondary);
    color: white;
}

.icon-box {
    width: 3rem;
    height: 3rem;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gold-gradient);
    color: var(--secondary-foreground);
    margin: 0 auto 0.75rem;
}

.icon-box-lg {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 0.75rem;
    margin-bottom: 1.25rem;
}

.icon-box-primary {
    background: var(--primary);
    color: var(--primary-foreground);
}

.step-number {
    display: inline-flex;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
    align-items: center;
    justify-content: center;
    background: var(--gold-gradient);
    color: var(--secondary-foreground);
    margin: 0 auto 0.75rem;
}

.check-icon {
    width: 2rem;
    height: 2rem;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gold-gradient);
    color: var(--secondary-foreground);
    flex-shrink: 0;
}

.dot-bullet {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 9999px;
    background: var(--secondary);
    flex-shrink: 0;
}

.dot-bullet-sm {
    width: 0.375rem;
    height: 0.375rem;
    margin-top: 0.375rem;
}

.gold-accent {
    position: absolute;
    bottom: -1rem;
    left: -1rem;
    width: 6rem;
    height: 6rem;
    border-radius: 0.75rem;
    background: var(--gold-gradient);
    opacity: 0.3;
}

/* ============================================
   SOLUTIONS SHOWCASE
   ============================================ */
.solutions-row {
    display: grid;
    gap: 2rem;
    align-items: center;
}

@media (min-width: 768px) {
    .solutions-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 3.5rem;
    }
}

.solutions-row + .solutions-row {
    margin-top: 5rem;
}

.solution-img-wrap {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.solution-img-wrap img {
    width: 100%;
    height: 18rem;
    object-fit: cover;
    transition: transform 0.7s;
}

@media (min-width: 768px) {
    .solution-img-wrap img {
        height: 24rem;
    }
}

.solution-img-wrap:hover img {
    transform: scale(1.05);
}

.solution-img-wrap .img-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(27, 55, 100, 0.6), transparent);
}

.solution-badge {
    position: absolute;
    top: 1.25rem;
    left: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    background: rgba(27, 55, 100, 0.9);
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.solution-badge svg {
    color: var(--secondary);
}

.solution-badge span {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary-foreground);
    letter-spacing: 0.025em;
}

/* ============================================
   TESTIMONIALS
   ============================================ */
.testimonial-card {
    background: var(--card);
    border-radius: 1rem;
    padding: 2rem;
    border: 1px solid var(--border);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    flex: 0 0 100%;
}

@media (min-width: 768px) {
    .testimonial-card {
        padding: 3rem;
        flex: 0 0 33.333%;
    }
}

.stars {
    display: flex;
    justify-content: center;
    gap: 0.25rem;
    margin-bottom: 1.5rem;
    color: var(--secondary);
}

.testimonial-quote {
    font-family: 'DM Serif Display', serif;
    font-size: 1.125rem;
    color: var(--foreground);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-style: italic;
}

@media (min-width: 768px) {
    .testimonial-quote {
        font-size: 1.25rem;
    }
}

.testimonial-source,
.testimonial-author {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    font-weight: 500;
}

.testimonial-carousel {
    position: relative;
    max-width: 72rem;
    margin: 0 auto;
    overflow: hidden;
}

.testimonial-track {
    display: flex;
    transition: transform 0.4s ease;
}

.testimonial-prev,
.testimonial-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 9999px;
    border: 1px solid var(--border);
    background: var(--card);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: background 0.2s;
    color: var(--foreground);
}

.testimonial-prev:hover,
.testimonial-next:hover {
    background: var(--muted);
}

.testimonial-prev {
    left: 0.5rem;
}

.testimonial-next {
    right: 0.5rem;
}

@media (max-width: 767px) {
    .testimonial-prev {
        left: 0.25rem;
    }
    .testimonial-next {
        right: 0.25rem;
    }
}

.testimonial-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.testimonial-dots .dot {
    width: 0.625rem;
    height: 0.625rem;
    border-radius: 9999px;
    background: var(--border);
    transition: background 0.2s;
    cursor: pointer;
}

.testimonial-dots .dot.active {
    background: var(--secondary);
}

/* ============================================
   FAQ ACCORDION
   ============================================ */
.faq-item {
    background: var(--card);
    border-radius: 0.75rem;
    border: 1px solid var(--border);
    overflow: hidden;
}

.faq-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem;
    text-align: left;
    font-weight: 500;
    font-size: 0.875rem;
    color: var(--foreground);
    cursor: pointer;
}

.faq-btn svg {
    flex-shrink: 0;
    margin-left: 1rem;
    color: var(--muted-foreground);
    transition: transform 0.2s;
}

.faq-answer {
    padding: 0 1.25rem 1.25rem;
    font-size: 0.875rem;
    color: var(--muted-foreground);
    line-height: 1.7;
    display: none;
}

.faq-item.open .faq-answer {
    display: block;
}

.faq-item.open .faq-btn svg {
    transform: rotate(180deg);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--foreground);
    color: rgba(255, 255, 255, 0.7);
    padding: 3rem 1rem;
}

.footer h3,
.footer h4 {
    color: rgba(255, 255, 255, 1);
}

.footer a:hover {
    color: var(--secondary);
    text-decoration: none;
}

.footer-grid {
    display: grid;
    gap: 2rem;
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.footer-divider {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    text-align: center;
    font-size: 0.75rem;
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.anim {
    opacity: 0;
    animation: fadeInUp 0.6s ease-out both;
}

.anim.visible {
    opacity: 1;
    animation: none;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }

/* ============================================
   SIDEBAR (Admin)
   ============================================ */
.sidebar {
    width: 260px;
    background: var(--color-white);
    border-right: 1px solid var(--color-gray-300);
    min-height: calc(100vh - var(--header-height));
    padding: 1.5rem 0;
}

.sidebar__menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar__item {
    margin: 0.25rem 0;
}

.sidebar__link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    color: var(--color-gray-700);
    font-size: var(--text-sm);
    font-weight: 500;
    border-left: 3px solid transparent;
    transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

.sidebar__link:hover,
.sidebar__link.active {
    background: var(--color-primary-light);
    color: var(--color-primary);
    text-decoration: none;
    border-left-color: var(--color-primary);
}

.sidebar__icon {
    width: 1.25rem;
    height: 1.25rem;
    flex-shrink: 0;
}

.content {
    flex: 1;
    padding: 2rem;
    background: var(--color-gray-100);
}

.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.page-title {
    font-size: var(--text-2xl);
    font-weight: 700;
    color: var(--color-gray-900);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--foreground);
    color: rgba(255, 255, 255, 0.7);
    padding: 3rem 1rem;
}

.footer h3,
.footer h4 {
    color: rgba(255, 255, 255, 1);
}

.footer a:hover {
    color: var(--secondary);
    text-decoration: none;
}

.footer-grid {
    display: grid;
    gap: 2rem;
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.footer-divider {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    text-align: center;
    font-size: 0.75rem;
}

/* Container narrow (for header/footer) */
.container-narrow {
    max-width: 72rem;
    margin: 0 auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--foreground);
    color: rgba(255, 255, 255, 0.7);
    padding: 3rem 1rem;
}

.footer h3,
.footer h4 {
    color: rgba(255, 255, 255, 1);
}

.footer a:hover {
    color: var(--secondary);
    text-decoration: none;
}

.footer-grid {
    display: grid;
    gap: 2rem;
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.footer-divider {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    text-align: center;
    font-size: 0.75rem;
}

/* ============================================
   BENEFITS / STEP CARDS / FINAL CTA
   ============================================ */
.benefit {
    text-align: center;
}

.benefit-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.step-card {
    text-align: center;
}

.final-cta {
    padding: 5rem 1rem;
    text-align: center;
}

@media (min-width: 768px) {
    .final-cta {
        padding: 7rem 1rem;
    }
}

.badge-active {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    background: rgba(34, 197, 94, 0.9);
    color: white;
}

/* ============================================
   CONTAINER NARROW
   ============================================ */
.container-narrow {
    max-width: 72rem;
    margin: 0 auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }

    .sidebar {
        display: none;
    }

    .content {
        padding: 1rem;
    }
}

/* ============================================
   AUTH PAGES
   ============================================ */
.auth-layout main {
    padding-top: 3rem;
}

.auth-layout .navbar {
    background: var(--primary) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 1px 10px rgba(0, 0, 0, 0.16);
}

.auth-layout .navbar .navbar-brand span,
.auth-layout .navbar .nav-links a,
.auth-layout .navbar .nav-company-menu,
.auth-layout .navbar .mobile-toggle {
    color: var(--primary-foreground) !important;
}

.auth-layout .navbar .nav-links a:hover {
    color: var(--secondary) !important;
}

.auth-layout .navbar .nav-links .nav-company-submenu a {
    color: var(--foreground) !important;
}

.auth-layout .navbar .nav-links .nav-company-submenu a:hover {
    color: var(--secondary) !important;
}

.auth-layout .navbar .btn-quote {
    background: var(--secondary);
    color: var(--secondary-foreground);
}

.auth-layout .navbar .cart-link {
    color: var(--primary-foreground);
}

.auth-layout .navbar .cart-link:hover {
    color: var(--secondary);
}

.auth-page {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 6rem);
    box-sizing: border-box;
    padding: 3rem 1rem 4rem;
}

.auth-box {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
}

.auth-box .card {
    border: none;
    box-shadow: var(--shadow-lg);
}

.auth-box .card__body {
    padding: 2rem;
}

.auth-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.auth-header h1 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
    color: var(--foreground);
}

.auth-header p {
    color: var(--muted-foreground);
    margin: 0;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1.5rem 0;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

.auth-divider span {
    color: var(--muted-foreground);
    font-size: var(--text-sm);
    white-space: nowrap;
}

.btn-google {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: var(--text-sm);
    border: 1px solid var(--border);
    background: var(--card);
    color: var(--foreground);
    transition: all 0.2s;
    cursor: pointer;
}

.btn-google:hover:not(:disabled) {
    background: var(--muted);
    text-decoration: none;
}

.btn-google:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.password-field {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--muted-foreground);
    cursor: pointer;
    padding: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.password-toggle:hover {
    color: var(--foreground);
}

.form-check-input {
    width: 1.1rem;
    height: 1.1rem;
    margin-top: 0.15rem;
    accent-color: var(--primary);
}

.form-check-label {
    font-size: var(--text-sm);
    color: var(--foreground);
}

.auth-links {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 0.75rem;
    font-size: var(--text-sm);
}

.auth-links a {
    color: var(--primary);
    text-decoration: none;
}

.auth-links a:hover {
    text-decoration: underline;
}

.required {
    color: var(--color-danger);
}

.form-hint {
    font-size: var(--text-sm);
    color: var(--muted-foreground);
    margin-top: 0.25rem;
}

.form-error {
    color: var(--color-danger);
    font-size: var(--text-sm);
    margin-top: 0.25rem;
}

.strength-bars {
    display: flex;
    gap: 0.25rem;
    margin-top: 0.5rem;
}

.strength-bars div {
    flex: 1;
    height: 0.375rem;
    border-radius: var(--radius-sm);
    background: var(--border);
    transition: background 0.3s;
}

@media (max-width: 768px) {
    .auth-box .card__body {
        padding: 1.5rem;
    }
}
