* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: #0f1623;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    height: 100vh;
    overflow: hidden;
}

#auth {
    height: 100vh;
    display: flex;
    align-items: stretch;
    overflow: hidden;
}

/* ── Painel esquerdo (formulário) ── */
#auth-left {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2rem 3.5rem;
    background: #ffffff;
    height: 100vh;
    overflow: hidden;
    position: relative;
    z-index: 2;
}

.auth-logo {
    margin-bottom: 1.4rem;
}

.auth-logo img {
    height: auto;
    max-height: 240px;
    width: 100%;
    max-width: 100%;
    object-fit: contain;
    display: block;
}

.auth-badge {
    display: inline-block;
    background: #eef2ff;
    color: #4f46e5;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 0.5rem;
}

.auth-title {
    font-size: 1.7rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.25rem;
    line-height: 1.2;
}

.auth-subtitle {
    color: #6b7280;
    font-size: 0.88rem;
    margin-bottom: 0;
    line-height: 1.4;
}

/* ── Formulário ── */
.auth-form {
    margin-top: 1.2rem;
}

.form-label-custom {
    font-size: 0.82rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.4rem;
    display: block;
    letter-spacing: 0.02em;
}

.input-wrapper {
    position: relative;
    margin-bottom: 0.85rem;
}

.input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    font-size: 1.05rem;
    pointer-events: none;
    z-index: 1;
}

.input-icon-right {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    font-size: 1rem;
    cursor: pointer;
    z-index: 1;
    background: none;
    border: none;
    padding: 0;
    line-height: 1;
}

.input-icon-right:hover {
    color: #4f46e5;
}

.form-control-custom {
    width: 100%;
    padding: 0.7rem 2.8rem 0.7rem 2.8rem;
    font-size: 0.92rem;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    background: #f9fafb;
    color: #111827;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
    outline: none;
}

.form-control-custom:focus {
    border-color: #4f46e5;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.form-control-custom::placeholder {
    color: #d1d5db;
}

/* Checkbox lembrar */
.check-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.check-row input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #4f46e5;
    cursor: pointer;
}

.check-row label {
    font-size: 0.85rem;
    color: #6b7280;
    cursor: pointer;
    user-select: none;
}

/* Botão principal */
.btn-login {
    width: 100%;
    padding: 0.78rem;
    background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.15s, box-shadow 0.2s;
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.35);
    letter-spacing: 0.02em;
}

.btn-login:hover {
    opacity: 0.92;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.45);
}

.btn-login:active {
    transform: translateY(0);
}

/* Link esqueci senha */
.link-forgot {
    display: block;
    text-align: center;
    margin-top: 0.7rem;
    font-size: 0.85rem;
    color: #4f46e5;
    text-decoration: none;
    cursor: pointer;
}

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

/* Divider */
.divider {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin: 0.9rem 0;
    color: #d1d5db;
    font-size: 0.8rem;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e5e7eb;
}

/* Botão cadastro */
.btn-register {
    width: 100%;
    padding: 0.72rem;
    background: transparent;
    color: #4f46e5;
    font-size: 0.9rem;
    font-weight: 600;
    border: 1.5px solid #4f46e5;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    text-decoration: none;
    text-align: center;
    display: block;
}

.btn-register:hover {
    background: #4f46e5;
    color: #fff;
}

/* Recuperar senha */
.div-recuperar-senha-sicok {
    margin-top: 1rem;
}

.div-recuperar-senha-sicok p {
    font-size: 0.88rem;
    color: #6b7280;
    margin-bottom: 0.8rem;
}

.btn-recover {
    width: 100%;
    padding: 0.72rem;
    background: #f59e0b;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: opacity 0.2s;
    margin-bottom: 0.6rem;
}

.btn-recover:hover { opacity: 0.9; }

.btn-back {
    width: 100%;
    padding: 0.68rem;
    background: transparent;
    color: #6b7280;
    font-size: 0.88rem;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    cursor: pointer;
    transition: border-color 0.2s;
}

.btn-back:hover { border-color: #9ca3af; }

/* Alertas */
.alert-custom {
    border-radius: 10px;
    padding: 0.8rem 1rem;
    font-size: 0.88rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 1.2rem;
    font-weight: 500;
}

.alert-custom.success {
    background: #ecfdf5;
    color: #065f46;
    border-left: 4px solid #10b981;
}

.alert-custom.error {
    background: #fef2f2;
    color: #991b1b;
    border-left: 4px solid #ef4444;
}

/* ── Painel direito ── */
#auth-right {
    background: linear-gradient(145deg, #1e1b4b 0%, #312e81 40%, #4338ca 100%);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem;
}

#auth-right::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(99,102,241,0.3) 0%, transparent 70%);
    top: -150px;
    right: -150px;
    border-radius: 50%;
}

#auth-right::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(139,92,246,0.25) 0%, transparent 70%);
    bottom: -100px;
    left: -100px;
    border-radius: 50%;
}

.auth-right-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
    max-width: 440px;
}

.auth-right-icon {
    width: 80px;
    height: 80px;
    background: rgba(255,255,255,0.12);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    font-size: 2.2rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.15);
}

.auth-right-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.25;
}

.auth-right-title span {
    color: #a5b4fc;
}

.auth-right-desc {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.65);
    line-height: 1.7;
    margin-bottom: 2.5rem;
}

.features-list {
    list-style: none;
    text-align: left;
    display: inline-block;
}

.features-list li {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: rgba(255,255,255,0.8);
    font-size: 0.9rem;
    margin-bottom: 0.8rem;
}

.features-list li i {
    color: #a5b4fc;
    font-size: 1.1rem;
    flex-shrink: 0;
}

/* Floating shapes decorativos */
.shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.08;
    animation: float-shape 6s ease-in-out infinite alternate;
}

.shape-1 {
    width: 200px; height: 200px;
    background: #818cf8;
    top: 15%; left: 10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 120px; height: 120px;
    background: #c4b5fd;
    bottom: 20%; right: 15%;
    animation-delay: 2s;
}

.shape-3 {
    width: 80px; height: 80px;
    background: #fff;
    top: 60%; left: 20%;
    animation-delay: 1s;
}

@keyframes float-shape {
    0%   { transform: translateY(0px) scale(1); }
    100% { transform: translateY(-20px) scale(1.05); }
}

/* ── Form controls override (registration forms) ── */
#auth-left .form-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: #374151;
    display: block;
    margin-bottom: 0.4rem;
    letter-spacing: 0.02em;
}

#auth-left .form-control {
    padding: 0.68rem 1rem;
    font-size: 0.92rem;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    background: #f9fafb;
    color: #111827;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
    outline: none;
    width: 100%;
}

#auth-left .form-control:focus {
    border-color: #4f46e5;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
    outline: none;
}

#auth-left .form-control::placeholder { color: #d1d5db; }

#auth-left .input-group .form-control {
    border-right: none;
    border-radius: 10px 0 0 10px;
}

#auth-left .input-group .input-group-text {
    background: #f9fafb;
    border: 1.5px solid #e5e7eb;
    border-left: none;
    border-radius: 0 10px 10px 0;
    color: #9ca3af;
    cursor: pointer;
}

#auth-left .invalid-feedback { font-size: 0.78rem; }

/* Select2 overrides in auth */
#auth-left .select2-container--default .select2-selection--single {
    height: 42px;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    background: #f9fafb;
    display: flex;
    align-items: center;
}

#auth-left .select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #111827;
    font-size: 0.92rem;
    padding-left: 12px;
    line-height: normal;
}

#auth-left .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 40px;
}

#auth-left .select2-container--default.select2-container--focus .select2-selection--single {
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

/* Search button inside auth */
.btn-auth-search {
    width: 100%;
    height: 42px;
    background: #1f2937;
    color: #fff;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.2s;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 1.5rem;
}

.btn-auth-search:hover { background: #374151; }

/* Scrollable left panel (tall forms) */
#auth-left.scrollable {
    justify-content: flex-start;
    overflow-y: auto;
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
}

/* Auth section title for sub-forms */
.auth-section-title {
    font-size: 1rem;
    font-weight: 700;
    color: #111827;
    margin: 1.5rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1.5px solid #f3f4f6;
}

/* ── Página de Planos ── */
#auth-plans {
    min-height: 100vh;
    background: #0f1623;
    padding: 3rem 2rem 4rem;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.plans-header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 3.5rem;
}

.plans-header .auth-logo {
    margin-bottom: 2rem;
}

.plans-header .auth-logo img {
    height: 52px;
    width: auto;
    max-width: 220px;
    object-fit: contain;
}

.plans-header .auth-badge {
    margin-bottom: 1.2rem;
}

.plans-header h1 {
    font-size: 2rem;
    font-weight: 700;
    color: #f9fafb;
    margin-bottom: 0.7rem;
    line-height: 1.2;
}

.plans-header p {
    color: rgba(255,255,255,0.55);
    font-size: 0.95rem;
    line-height: 1.6;
}

.plans-header .trial-note {
    display: inline-block;
    margin-top: 0.8rem;
    background: rgba(16,185,129,0.12);
    color: #34d399;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 5px 14px;
    border-radius: 20px;
    border: 1px solid rgba(52,211,153,0.25);
}

.plan-card {
    background: #1a2235;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.plan-card:hover {
    transform: translateY(-5px);
    border-color: rgba(79,70,229,0.5);
    box-shadow: 0 16px 48px rgba(0,0,0,0.45);
}

.plan-card-img-wrap {
    padding: 2rem 2rem 0;
    text-align: center;
}

.plan-card-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255,255,255,0.1);
}

.plan-card-name {
    font-size: 1.15rem;
    font-weight: 700;
    color: #f9fafb;
    text-align: center;
    padding: 1rem 2rem 0;
    margin: 0;
}

.plan-card-price {
    text-align: center;
    padding: 1.2rem 2rem;
    border-bottom: 1px solid rgba(255,255,255,0.07);
}

.plan-price-value {
    font-size: 2.2rem;
    font-weight: 800;
    color: #a5b4fc;
}

.plan-price-prefix {
    font-size: 1rem;
    font-weight: 600;
    color: #a5b4fc;
    vertical-align: super;
}

.plan-price-period {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.35);
    margin-top: 0.2rem;
}

.plan-card-desc {
    padding: 1.2rem 2rem;
    color: rgba(255,255,255,0.6);
    font-size: 0.88rem;
    line-height: 1.7;
    flex: 1;
}

.plan-card-footer {
    padding: 0 2rem 2rem;
}

.btn-plan-choose {
    display: block;
    width: 100%;
    padding: 0.75rem;
    background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    transition: opacity 0.2s, transform 0.15s;
    box-shadow: 0 4px 14px rgba(79,70,229,0.35);
}

.btn-plan-choose:hover {
    opacity: 0.9;
    transform: translateY(-1px);
    color: #fff;
    text-decoration: none;
}

.plans-footer-link {
    text-align: center;
    margin-top: 3rem;
    color: rgba(255,255,255,0.45);
    font-size: 0.88rem;
}

.plans-footer-link a {
    color: #a5b4fc;
    text-decoration: none;
    font-weight: 500;
}

.plans-footer-link a:hover { text-decoration: underline; }

/* Responsive */
@media screen and (max-width: 991px) {
    #auth-left {
        padding: 2.5rem 2rem;
        min-height: 100vh;
    }

    #auth-right {
        display: none !important;
    }
}

@media screen and (max-width: 576px) {
    #auth-left {
        padding: 2rem 1.5rem;
    }
}
