/* iCet Soft — portal WHMCS (login, registro, área do cliente) */

@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@500;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root {
    --icet-brand: #0ea5e9;
    --icet-brand-deep: #0284c7;
    --icet-brand-glow: rgba(14, 165, 233, 0.45);
    --icet-accent: #22d3ee;
    --icet-dark: #0b1220;
    --icet-dark-2: #111827;
    --icet-surface: rgba(255, 255, 255, 0.08);
    --icet-surface-solid: #ffffff;
    --icet-radius: 16px;
    --icet-shadow: 0 24px 48px rgba(2, 8, 23, 0.18);
    --icet-transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

body.icet-portal {
    font-family: 'Plus Jakarta Sans', 'Open Sans', system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
}

/* —— Auth (login / registro / senha) —— */
body.icet-page-login,
body.icet-page-clientregister,
body.icet-page-password-reset-container,
body.icet-page-contact {
    background: #050814 !important;
    overflow-x: hidden;
    font-family: 'Manrope', 'Plus Jakarta Sans', 'Open Sans', system-ui, sans-serif;
}

body.icet-page-login #header,
body.icet-page-clientregister #header,
body.icet-page-password-reset-container #header,
body.icet-page-contact #header,
body.icet-page-login .master-breadcrumb,
body.icet-page-clientregister .master-breadcrumb,
body.icet-page-password-reset-container .master-breadcrumb,
body.icet-page-contact .master-breadcrumb {
    display: none !important;
}

body.icet-page-login #main-body,
body.icet-page-clientregister #main-body,
body.icet-page-password-reset-container #main-body,
body.icet-page-contact #main-body {
    padding: 0;
    margin: 0;
    min-height: 100dvh;
    width: 100%;
}

body.icet-page-login #main-body > .container,
body.icet-page-clientregister #main-body > .container,
body.icet-page-password-reset-container #main-body > .container,
body.icet-page-contact #main-body > .container {
    max-width: none;
    width: 100%;
    padding: 0;
    margin: 0;
}

body.icet-page-login #main-body > .container > .row,
body.icet-page-clientregister #main-body > .container > .row,
body.icet-page-password-reset-container #main-body > .container > .row,
body.icet-page-contact #main-body > .container > .row {
    margin: 0;
    width: 100%;
}

body.icet-page-login .primary-content,
body.icet-page-clientregister .primary-content,
body.icet-page-password-reset-container .primary-content,
body.icet-page-contact .primary-content {
    padding: 0;
    width: 100%;
    max-width: none;
    flex: 0 0 100% !important;
}

body.icet-page-login .sidebar,
body.icet-page-clientregister .sidebar,
body.icet-page-password-reset-container .sidebar,
body.icet-page-contact .sidebar,
body.icet-page-clientregister .sidebar-secondary,
body.icet-page-login #footer .sidebar-secondary,
body.icet-page-clientregister #footer .sidebar-secondary,
body.icet-page-contact #footer .sidebar-secondary {
    display: none !important;
}

body.icet-page-login #main-body .row > .col-lg-4,
body.icet-page-login #main-body .row > .col-xl-3,
body.icet-page-clientregister #main-body .row > .col-lg-4,
body.icet-page-clientregister #main-body .row > .col-xl-3,
body.icet-page-password-reset-container #main-body .row > .col-lg-4,
body.icet-page-password-reset-container #main-body .row > .col-xl-3,
body.icet-page-contact #main-body .row > .col-lg-4,
body.icet-page-contact #main-body .row > .col-xl-3 {
    display: none !important;
}

body.icet-page-login .primary-content.col-lg-8,
body.icet-page-login .primary-content.col-xl-9,
body.icet-page-clientregister .primary-content.col-lg-8,
body.icet-page-clientregister .primary-content.col-xl-9,
body.icet-page-password-reset-container .primary-content.col-lg-8,
body.icet-page-password-reset-container .primary-content.col-xl-9,
body.icet-page-contact .primary-content.col-lg-8,
body.icet-page-contact .primary-content.col-xl-9 {
    flex: 0 0 100% !important;
    max-width: 100% !important;
    width: 100% !important;
}

body.icet-page-login #footer,
body.icet-page-clientregister #footer,
body.icet-page-password-reset-container #footer,
body.icet-page-contact #footer {
    display: none !important;
}

body.icet-page-contact #footer.icet-client-footer {
    background: transparent !important;
    border: 0;
    padding: 1rem 1rem 1.5rem;
}

body.icet-page-contact.icet-logged-in {
    background: var(--icet-dark) !important;
}

body.icet-page-contact .icet-contact-panel-inner {
    max-width: min(520px, 100%);
}

body.icet-page-contact .icet-contact-form textarea.form-control {
    min-height: 120px;
    border-radius: 10px;
    resize: vertical;
}

/* —— Shell auth —— */
.icet-auth-page {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100dvh;
    width: 100%;
    padding: max(1rem, env(safe-area-inset-top)) 1rem 1.25rem;
    box-sizing: border-box;
}

.icet-auth-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
    background:
        radial-gradient(ellipse 90% 60% at 10% 0%, rgba(34, 211, 238, 0.22), transparent 55%),
        radial-gradient(ellipse 70% 50% at 90% 10%, rgba(129, 140, 248, 0.28), transparent 50%),
        radial-gradient(ellipse 60% 45% at 50% 100%, rgba(232, 121, 249, 0.2), transparent 55%),
        #050814;
    transition: transform 0.35s ease-out;
}

.icet-auth-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse 85% 75% at 50% 40%, #000 20%, transparent 80%);
    animation: icet-grid-drift 28s linear infinite;
}

.icet-auth-noise {
    position: absolute;
    inset: 0;
    opacity: 0.12;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    mix-blend-mode: soft-light;
}

.icet-auth-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(48px);
    opacity: 0.95;
    mix-blend-mode: screen;
    animation: icet-float 14s ease-in-out infinite;
}

.icet-auth-orb--1 {
    width: min(56vw, 620px);
    height: min(56vw, 620px);
    background: radial-gradient(circle, #22d3ee 0%, transparent 68%);
    top: -18vw;
    left: -12vw;
}

.icet-auth-orb--2 {
    width: min(48vw, 520px);
    height: min(48vw, 520px);
    background: radial-gradient(circle, #818cf8 0%, transparent 70%);
    top: -4vh;
    right: -14vw;
    animation-delay: -4s;
}

.icet-auth-orb--3 {
    width: min(42vw, 460px);
    height: min(42vw, 460px);
    background: radial-gradient(circle, #e879f9 0%, transparent 72%);
    bottom: -16vw;
    left: 18vw;
    animation-delay: -9s;
}

.icet-auth-orb--4 {
    width: min(28vw, 300px);
    height: min(28vw, 300px);
    background: radial-gradient(circle, #38bdf8 0%, transparent 70%);
    bottom: 8vh;
    right: 12vw;
    animation-delay: -2s;
}

.icet-auth-beam {
    position: absolute;
    width: 140%;
    height: 2px;
    left: -20%;
    background: linear-gradient(90deg, transparent, rgba(34, 211, 238, 0.55), rgba(129, 140, 248, 0.55), transparent);
    filter: blur(1px);
    opacity: 0.55;
    animation: icet-beam 9s ease-in-out infinite;
}

.icet-auth-beam--1 { top: 28%; transform: rotate(-8deg); }
.icet-auth-beam--2 { top: 68%; transform: rotate(6deg); animation-delay: -3.5s; opacity: 0.35; }

@keyframes icet-float {
    0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
    50% { transform: translate3d(4%, -5%, 0) scale(1.12); }
}

@keyframes icet-beam {
    0%, 100% { opacity: 0.25; transform: translateX(-4%) rotate(var(--r, -8deg)); }
    50% { opacity: 0.7; transform: translateX(4%) rotate(var(--r, -8deg)); }
}

@keyframes icet-grid-drift {
    from { background-position: 0 0; }
    to { background-position: 48px 48px; }
}

.icet-auth-stage {
    position: relative;
    z-index: 1;
    width: min(860px, 100%);
    display: grid;
    grid-template-columns: 1fr;
    overflow: visible;
    border-radius: 26px;
    background: rgba(10, 14, 30, 0.62);
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow:
        0 30px 80px rgba(2, 6, 23, 0.55),
        0 0 0 1px rgba(34, 211, 238, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
}

@media (min-width: 992px) {
    .icet-auth-stage {
        grid-template-columns: 1fr 1fr;
        overflow: hidden;
    }
}

.icet-auth-visual {
    position: relative;
    z-index: 1;
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 0;
    padding: 2rem 1.5rem 2rem 1.75rem;
    color: #f8fafc;
    box-sizing: border-box;
    min-width: 0;
    background:
        linear-gradient(160deg, rgba(14, 165, 233, 0.22) 0%, transparent 42%),
        linear-gradient(200deg, rgba(99, 102, 241, 0.2) 0%, transparent 50%);
    border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.icet-auth-visual__glow {
    position: absolute;
    width: 220px;
    height: 220px;
    right: -40px;
    top: -50px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(34, 211, 238, 0.45), transparent 70%);
    filter: blur(8px);
    animation: icet-float 10s ease-in-out infinite;
    pointer-events: none;
}

@media (min-width: 992px) {
    .icet-auth-visual {
        display: flex;
    }
}

.icet-auth-panel-mobile-header {
    display: flex;
    justify-content: center;
    margin: 0 0 0.85rem;
}

.icet-auth-panel-mobile-header .icet-auth-logo {
    max-height: 38px;
}

@media (min-width: 992px) {
    .icet-auth-panel-mobile-header {
        display: none;
    }
}

.icet-auth-brand {
    display: inline-block;
    margin-bottom: 1.1rem;
    position: relative;
    z-index: 1;
}

.icet-auth-logo {
    max-height: 42px;
    filter: brightness(0) invert(1) drop-shadow(0 0 16px rgba(34, 211, 238, 0.45));
}

.icet-auth-logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
}

.icet-auth-kicker {
    position: relative;
    z-index: 1;
    margin: 0 0 0.4rem;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #7dd3fc;
}

.icet-auth-headline {
    position: relative;
    z-index: 1;
    font-size: clamp(1.55rem, 2.5vw, 2rem);
    font-weight: 800;
    line-height: 1.18;
    margin: 0 0 0.65rem;
    letter-spacing: -0.03em;
    max-width: 18ch;
}

.icet-auth-lead {
    position: relative;
    z-index: 1;
    font-size: 0.94rem;
    line-height: 1.55;
    color: rgba(248, 250, 252, 0.78);
    max-width: 28rem;
    margin: 0 0 1.15rem;
}

.icet-auth-features {
    position: relative;
    z-index: 1;
    list-style: none;
    padding: 0;
    margin: 0 0 1.2rem;
    display: grid;
    gap: 0.45rem;
}

.icet-auth-features li {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    color: #e8eefc;
    font-weight: 650;
    font-size: 0.92rem;
    padding: 0.45rem 0.55rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.icet-auth-features li:hover {
    transform: translateX(4px);
    background: rgba(34, 211, 238, 0.1);
    border-color: rgba(34, 211, 238, 0.25);
}

.icet-auth-features__icon {
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.35), rgba(129, 140, 248, 0.4));
    color: #ecfeff;
    box-shadow: 0 6px 16px rgba(34, 211, 238, 0.2);
}

.icet-auth-footnote {
    position: relative;
    z-index: 1;
    font-size: 0.86rem;
    color: rgba(248, 250, 252, 0.62);
    margin: 0;
}

.icet-auth-footnote a {
    color: #67e8f9;
    font-weight: 800;
    text-decoration: none;
}

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

.icet-auth-panel {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
    min-width: 0;
    width: 100%;
    padding: 1.35rem 1.2rem;
    background: linear-gradient(180deg, #ffffff 0%, #f7fafc 100%);
    box-sizing: border-box;
}

@media (min-width: 992px) {
    .icet-auth-panel {
        padding: 1.85rem 1.65rem;
        border-radius: 0 26px 26px 0;
    }
}

.icet-auth-panel-inner {
    width: 100%;
    max-width: 100%;
    margin: 0;
    box-sizing: border-box;
}

.icet-auth-panel .card.icet-auth-card {
    display: block !important;
}

.icet-auth-legal {
    position: relative;
    z-index: 1;
    margin: 0.9rem 0 0;
    color: #8b97b5;
    font-size: 0.78rem;
    text-align: center;
}

.icet-auth-legal a {
    color: #c7d2fe;
    font-weight: 700;
}

body.icet-page-clientregister .icet-auth-panel-inner {
    max-width: 100%;
}

.icet-auth-panel .login-form,
.icet-auth-panel .icet-auth-form,
.icet-auth-panel .providerLinkingFeedback,
.icet-auth-panel #registration,
.icet-auth-panel #registration form {
    width: 100%;
    max-width: 100%;
}

.icet-auth-panel .card,
.icet-auth-panel .icet-auth-card {
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    overflow: visible;
    width: 100%;
    max-width: 100% !important;
    margin: 0 !important;
}

.icet-auth-panel .card-body {
    padding: 0 !important;
    overflow: visible !important;
}

.icet-auth-intro {
    margin-bottom: 1.15rem;
}

.icet-auth-title {
    margin: 0 0 0.25rem;
    font-size: 1.45rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #0f172a;
}

.icet-auth-subtitle {
    margin: 0;
    color: #64748b;
    font-size: 0.92rem;
}

.icet-auth-panel .card-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.35rem 0.5rem;
    background: transparent;
    border-top: 1px solid #e8eef5;
    padding: 0.95rem 0 0;
    margin-top: 1rem;
    color: #64748b;
    font-size: 0.9rem;
}

.icet-auth-panel .card-footer a {
    color: #0284c7;
    font-weight: 800;
}

.icet-auth-actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    width: 100%;
    margin-top: 0.45rem;
}

.icet-auth-submit {
    width: 100% !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
}

.icet-auth-panel .btn,
.icet-auth-submit {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.icet-auth-panel .btn::after,
.icet-auth-submit::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(115deg, transparent 18%, rgba(255, 255, 255, 0.5) 48%, transparent 72%);
    transform: translateX(-130%);
    transition: transform 0.65s ease;
    pointer-events: none;
}

.icet-auth-panel .btn:hover::after,
.icet-auth-submit:hover::after {
    transform: translateX(130%);
}

.icet-auth-remember {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.88rem;
    color: #64748b;
    font-weight: 600;
    white-space: nowrap;
}

.icet-auth-forgot {
    color: #0284c7 !important;
    font-weight: 700;
    text-decoration: none;
}

.icet-auth-forgot:hover {
    text-decoration: underline;
}

.icet-auth-panel .form-group {
    margin-bottom: 0.9rem;
}

.icet-auth-panel .form-control-label {
    font-weight: 700;
    color: #334155;
    font-size: 0.86rem;
    margin-bottom: 0.35rem;
}

.icet-auth-panel .input-group {
    flex-wrap: nowrap;
    width: 100%;
}

.icet-auth-panel .input-group .form-control {
    min-width: 0;
    flex: 1 1 auto;
    width: 1%;
}

.icet-auth-panel .input-group-text {
    background: #f1f5f9;
    border-color: #dbe3f0;
    color: #64748b;
}

.icet-auth-panel .btn-reveal-pw {
    border-color: #dbe3f0;
    background: #fff;
    color: #64748b;
}

.icet-auth-panel #registration .row {
    margin-left: -0.5rem;
    margin-right: -0.5rem;
}

.icet-auth-panel #registration .row > [class*="col-"] {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

body.icet-page-clientregister .icet-auth-panel {
    align-items: stretch;
}

body.icet-page-clientregister .icet-auth-panel-inner {
    padding-bottom: 0.5rem;
}

.icet-auth-card-animate {
    animation: icet-rise 0.7s ease backwards;
}

@keyframes icet-rise {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.icet-auth-panel .h3,
.icet-auth-panel .card-title {
    font-weight: 800;
    color: var(--icet-dark);
}

.icet-auth-panel .btn-primary {
    background: linear-gradient(135deg, #22d3ee 0%, #6366f1 100%);
    border: none;
    border-radius: 12px;
    font-weight: 800;
    min-height: 48px;
    padding: 0.75rem 1.15rem;
    box-shadow: 0 10px 24px rgba(99, 102, 241, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease, filter 0.3s ease;
}

.icet-auth-panel .btn-primary:hover {
    transform: translateY(-2px);
    filter: brightness(1.05);
    box-shadow: 0 16px 34px rgba(34, 211, 238, 0.42);
}

.icet-auth-panel .form-control {
    border-radius: 10px;
    border-color: #dbe3f0;
    padding: 0.7rem 0.85rem;
    background: #fff;
}

.icet-auth-panel .form-control:focus {
    border-color: #22d3ee;
    box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.18);
}

.icet-auth-panel .input-group-merge .form-control {
    border-left: 0;
}

.icet-auth-panel .input-group-merge .input-group-prepend .input-group-text {
    border-radius: 10px 0 0 10px;
}

.icet-auth-panel .input-group-merge .input-group-append .btn {
    border-radius: 0 10px 10px 0;
}

/* Registro */
body.icet-page-clientregister .icet-auth-panel .card.mb-4 {
    margin-bottom: 1rem !important;
}

body.icet-page-clientregister .icet-auth-panel .btn-lg {
    width: 100%;
    max-width: 100%;
}

@media (max-width: 991.98px) {
    .icet-auth-stage {
        width: min(440px, 100%);
    }
}

@media (max-width: 575px) {
    .icet-auth-orb--1 {
        width: 280px;
        height: 280px;
    }

    .icet-auth-orb--2,
    .icet-auth-orb--3 {
        width: 180px;
        height: 180px;
    }

    body.icet-page-clientregister #footer,
    body.icet-page-login #footer {
        padding-bottom: max(1rem, env(safe-area-inset-bottom));
    }
}

@media (prefers-reduced-motion: reduce) {
    .icet-auth-orb,
    .icet-auth-beam,
    .icet-auth-grid,
    .icet-auth-visual__glow {
        animation: none !important;
    }
}

/* Área do cliente logada: visual em icet-client.css */
body.icet-portal.icet-logged-in {
    background: #070b16;
}

body.icet-logged-in .tiles .tile {
    border-radius: var(--icet-radius);
    border: 1px solid #e2e8f0;
    background: #fff;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
    transition: transform var(--icet-transition), box-shadow var(--icet-transition);
}

body.icet-logged-in .tiles .tile:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.12);
}

body.icet-logged-in .card {
    border-radius: var(--icet-radius);
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
}

body.icet-logged-in .card-header {
    background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
    font-weight: 600;
    border-bottom: 1px solid #e2e8f0;
}

body.icet-logged-in .btn-primary {
    background: linear-gradient(135deg, var(--icet-brand) 0%, var(--icet-brand-deep) 100%);
    border: none;
    border-radius: 10px;
    font-weight: 600;
}

body.icet-logged-in .panel-default,
body.icet-logged-in .panel {
    border-radius: var(--icet-radius);
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
}

body.icet-logged-in .icet-oficina-bridge .btn-primary {
    padding: 0.75rem 1.25rem;
}

/* Homepage vazia (fallback se hook falhar) */
body.icet-page-homepage #main-body {
    min-height: 40vh;
}
