/* ==========================================
   REPLAI AUTH — Split Screen
   ========================================== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* Hide original logo-container from auth.blade.php */
.logo-container { display: none !important; }

/* Reset body */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
    background: #ffffff !important;
    min-height: 100vh;
    padding: 0 !important;
    margin: 0 !important;
}

/* ---- Split Wrapper ---- */
.auth-split-wrapper {
    display: flex;
    min-height: 100vh;
}

/* ================================================================
   LEFT PANEL — White Form Side
   ================================================================ */
.auth-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #ffffff;
    position: relative;
    z-index: 2;
}

/* Top bar */
.auth-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 36px;
    border-bottom: 1px solid #f3f4f6;
}

.auth-brand { text-decoration: none; display: flex; align-items: center; }
.auth-brand:hover { opacity: 0.85; }

.lang-btn {
    background: #f9fafb;
    border: 1.5px solid #e5e7eb;
    border-radius: 8px;
    padding: 6px 12px;
    font-size: 13px;
    color: #374151;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
    font-family: inherit;
}
.lang-btn:hover { background: #f0fdf4; border-color: #22c55e; }
.flag-img { width: 18px; height: 13px; object-fit: cover; border-radius: 2px; }

.lang-dropdown {
    border-radius: 12px !important;
    border: 1px solid #e5e7eb !important;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1) !important;
    padding: 6px !important;
}
.lang-dropdown .dropdown-item {
    border-radius: 6px !important;
    padding: 8px 12px !important;
    font-size: 13px !important;
    color: #374151 !important;
    transition: background 0.15s;
}
.lang-dropdown .dropdown-item:hover { background: #f0fdf4 !important; color: #15803d !important; }

/* Form area */
.auth-form-area {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 36px;
}

.auth-form-box { width: 100%; max-width: 360px; }

.auth-greeting {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #0EA5E9;
    margin-bottom: 6px;
    letter-spacing: 0.2px;
}

.auth-title {
    font-size: 26px !important;
    font-weight: 700 !important;
    color: #111827 !important;
    letter-spacing: -0.4px;
    line-height: 1.25;
    margin-bottom: 8px !important;
}

.auth-subtitle {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 4px;
}

/* Fields */
.auth-field { margin-bottom: 18px; }

.auth-label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 7px;
}

.auth-input {
    width: 100%;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    padding: 11px 14px;
    font-size: 14px;
    color: #111827;
    background: #fff;
    font-family: inherit;
    transition: all 0.2s;
    outline: none;
    display: block;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}
.auth-input::placeholder { color: #d1d5db; }
.auth-input:focus {
    border-color: #22c55e;
    box-shadow: 0 0 0 3px rgba(34,197,94,0.12);
}

.auth-input-wrap { position: relative; }
.auth-input-wrap .auth-input { padding-right: 44px; }
.toggle-eye {
    position: absolute; right: 13px; top: 50%; transform: translateY(-50%);
    background: none; border: none; color: #9ca3af; cursor: pointer;
    padding: 0; display: flex; align-items: center; font-size: 15px;
    transition: color 0.2s;
}
.toggle-eye:hover { color: #374151; }

/* Remember + Forgot */
.auth-row-between {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 22px;
}
.auth-remember {
    display: flex; align-items: center; gap: 7px;
    font-size: 13px; color: #6b7280; cursor: pointer;
}
.auth-remember input[type=checkbox] {
    width: 15px; height: 15px; accent-color: #0EA5E9; cursor: pointer;
}
.auth-forgot {
    font-size: 13px; font-weight: 500; color: #0EA5E9; text-decoration: none;
}
.auth-forgot:hover { text-decoration: underline; color: #15803d; }

/* Primary Button */
.auth-btn-primary {
    width: 100%;
    background: linear-gradient(135deg, #22c55e 0%, #0EA5E9 100%);
    color: #fff !important;
    font-size: 15px;
    font-weight: 600;
    padding: 13px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    font-family: inherit;
    letter-spacing: 0.2px;
    transition: all 0.25s;
    box-shadow: 0 2px 12px rgba(34,197,94,0.28);
    display: block;
}
.auth-btn-primary:hover {
    background: linear-gradient(135deg, #0EA5E9 0%, #15803d 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(34,197,94,0.38);
}
.auth-btn-primary:active { transform: translateY(0); }

.auth-switch-text {
    text-align: center; font-size: 13px; color: #6b7280; margin-top: 20px;
}
.auth-link { color: #0EA5E9; font-weight: 600; text-decoration: none; }
.auth-link:hover { text-decoration: underline; color: #15803d; }

.auth-copy {
    text-align: center; font-size: 12px; color: #d1d5db; margin-top: 28px;
}

/* ================================================================
   RIGHT PANEL — Green Marketing Side
   ================================================================ */
.auth-right {
    flex: 1;
    background: linear-gradient(145deg, #22c55e 0%, #0EA5E9 45%, #15803d 75%, #14532d 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    min-height: 100vh;
}

.auth-right-inner {
    position: relative;
    z-index: 2;
    padding: 60px 52px;
    max-width: 500px;
}

.auth-right-badge {
    display: inline-block;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.3);
    color: rgba(255,255,255,0.95);
    font-size: 12px;
    font-weight: 600;
    padding: 5px 14px;
    border-radius: 100px;
    margin-bottom: 24px;
    letter-spacing: 0.4px;
}

.auth-right-title {
    font-size: 38px !important;
    font-weight: 800 !important;
    color: #ffffff !important;
    line-height: 1.2 !important;
    margin-bottom: 18px !important;
    letter-spacing: -0.6px;
}

.auth-right-desc {
    font-size: 15px;
    color: rgba(255,255,255,0.8);
    line-height: 1.7;
    margin-bottom: 36px;
}

.auth-feat-list {
    list-style: none;
    padding: 0; margin: 0;
    display: flex; flex-direction: column; gap: 12px;
}
.auth-feat-list li {
    display: flex; align-items: center; gap: 12px;
    color: rgba(255,255,255,0.95);
    font-size: 14px; font-weight: 500;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 10px;
    padding: 12px 16px;
}
.auth-feat-list li:hover { background: rgba(255,255,255,0.18); }

.feat-check {
    width: 22px; height: 22px;
    background: rgba(255,255,255,0.25);
    border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 11px; font-weight: 700; color: #fff; flex-shrink: 0;
}

/* Orb decorations */
.auth-orb {
    position: absolute; border-radius: 50%; pointer-events: none;
}
.auth-orb-1 { width: 350px; height: 350px; background: rgba(255,255,255,0.07); top: -80px; right: -80px; }
.auth-orb-2 { width: 220px; height: 220px; background: rgba(255,255,255,0.06); bottom: 60px; right: 50px; }
.auth-orb-3 { width: 130px; height: 130px; background: rgba(255,255,255,0.09); bottom: -30px; left: 50px; }

/* ================================================================
   REGISTER PAGE
   ================================================================ */
.register-mode .auth-left { order: 2; }
.register-mode .auth-right { order: 1; }

.register-form-area {
    padding: 20px 28px !important;
    align-items: flex-start !important;
    overflow-y: auto;
}

/* Existing register styles cleanup */
.register-container { width: 100%; }
.register-card {
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
    border-radius: 0 !important;
    max-width: 100% !important;
}

/* Override existing alert / form-control in new context */
.auth-left .form-control {
    border: 1.5px solid #e5e7eb !important;
    border-radius: 10px !important;
    transition: border-color 0.2s, box-shadow 0.2s !important;
}
.auth-left .form-control:focus {
    border-color: #22c55e !important;
    box-shadow: 0 0 0 3px rgba(34,197,94,0.12) !important;
}
.auth-left .form-label {
    font-size: 13px !important;
    font-weight: 500 !important;
    color: #374151 !important;
}

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 960px) {
    .auth-right { display: none; }
    .auth-left { flex: none; width: 100%; }
    .register-mode .auth-left { order: 1; }
}
@media (max-width: 480px) {
    .auth-topbar { padding: 16px 20px; }
    .auth-form-area { padding: 24px 20px 40px; }
    .auth-title { font-size: 22px !important; }
}

/* ---- Register split override ---- */
.register-container { width:100%; max-width:580px; margin:0 auto; }
.register-card {
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
    border-radius: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
}
.stepper {
    background: #f8fafc;
    border-radius: 14px;
    padding: 16px 24px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 0;
    border: 1px solid #e5e7eb;
}
.step { flex: 1; display: flex; align-items: center; position: relative; }
.step-number {
    width: 30px; height: 30px;
    border-radius: 50%;
    background: #e5e7eb;
    color: #9ca3af;
    font-size: 13px; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; z-index: 1;
    transition: all 0.3s;
}
.step.active .step-number { background: #22c55e; color: #fff; box-shadow: 0 2px 10px rgba(34,197,94,0.4); }
.step.completed .step-number { background: #22c55e; color: #fff; }
.step-label { font-size: 12px; font-weight: 500; color: #9ca3af; margin-left: 8px; white-space: nowrap; }
.step.active .step-label { color: #15803d; }
.step.completed .step-label { color: #22c55e; }
.step-line { flex: 1; height: 2px; background: #e5e7eb; margin: 0 8px; }
.step.completed .step-line { background: #22c55e; }

.card-logo { display: none; }
.card-title { font-size: 20px !important; font-weight: 700 !important; color: #111827 !important; margin-bottom: 6px !important; }
.card-subtitle { font-size: 13px; color: #6b7280; margin-bottom: 20px; }
.back-button {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 13px; color: #6b7280; text-decoration: none;
    padding: 6px 12px; border-radius: 8px; background: #f3f4f6;
    transition: all 0.2s; margin-bottom: 20px;
}
.back-button:hover { background: #e5e7eb; color: #374151; }
.btn-primary {
    background: linear-gradient(135deg, #22c55e 0%, #0EA5E9 100%) !important;
    border: none !important;
    border-radius: 10px !important;
    padding: 12px 28px !important;
    font-weight: 600 !important;
    box-shadow: 0 2px 12px rgba(34,197,94,0.28) !important;
    transition: all 0.25s !important;
}
.btn-primary:hover { transform: translateY(-1px) !important; box-shadow: 0 6px 20px rgba(34,197,94,0.38) !important; }

/* ---- Step Content: semua hidden kecuali yang .active ---- */
.step-content { display: none !important; }
.step-content.active { display: block !important; }

/* ---- Back button: hanya tampil di step 2+ ---- */
.back-button { margin-bottom: 16px; }

/* ---- Stepper fix: jangan stretch aneh ---- */
.stepper { flex-wrap: nowrap; overflow-x: auto; }


/* ====== Package & Modal styles (dari backup) ====== */
.package-select-btn {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: 24px;
}

.package-select-btn:hover {
    border-color: #005C4B;
    background: #f8f9fa;
}

.package-select-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.package-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.package-text {
    font-size: 14px;
    font-weight: 500;
    color: #1a1a1a;
}

.package-selected {
    background: #f0f8ff;
    border-color: #005C4B;
}

.package-selected .package-icon {
    background: linear-gradient(135deg, #005C4B 0%, #45b5d8 100%);
    color: white;
}

.terms-text {
    font-size: 12px;
    color: #156a4c;
    margin-bottom: 24px;
}

.terms-text a {
    color: #005C4B;
    text-decoration: none;
}

/* Modal Styles */
.modal-content {
    border-radius: 12px;
    border: none;
}

.modal-header {
    border-bottom: 1px solid #dee2e6;
    padding: 20px 24px;
}

.modal-title {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
}

.modal-body {
    padding: 24px;
}

.package-card {
    border: 2px solid #dee2e6;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 16px;
    transition: all 0.2s;
    cursor: pointer;
}

.package-card:hover {
    border-color: #005C4B;
    box-shadow: 0 4px 12px rgba(26, 115, 168, 0.15);
}

.package-header {
    text-align: center;
    margin-bottom: 20px;
}

.package-icon-modal {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 12px;
}

.package-icon-modal.starter {
    background: #e3f2fd;
    color: #1976d2;
}

.package-icon-modal.professional {
    background: #e8f5e9;
    color: #388e3c;
}

.package-icon-modal.enterprise {
    background: #fff3e0;
    color: #f57c00;
}

.package-price {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 4px;
}

.package-period {
    font-size: 13px;
    color: #156a4c;
}

.package-name {
    font-size: 16px;
    font-weight: 600;
    color: #005C4B;
    margin-bottom: 8px;
}

.package-description {
    font-size: 13px;
    color: #156a4c;
    margin-bottom: 20px;
}

.package-features {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}

.package-features li {
    font-size: 13px;
    color: #495057;
    padding: 6px 0;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.package-features li i {
    color: #005C4B;
    margin-top: 2px;
}

.btn-select-package {
    width: 100%;
    padding: 10px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
}

.step-content {
    display: none;
}

.step-content.active {
    display: block;
}

.payment-method-card {
    cursor: pointer;
    transition: all 0.2s;
}

.payment-method-card:hover {
    border-color: #005C4B !important;
    background-color: #f8f9fa;
}

.payment-method-card:has(input:checked) {
    border-color: #005C4B !important;
    background-color: #e7f3ff;
}

/* Language Selector Styles */
.language-selector {
    position: relative;
}

.language-selector .btn {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 8px 16px;
    color: #005C4B;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}

.language-selector .btn:hover {
    border-color: #005C4B;
    background: #f8f9fa;
}

.language-selector .btn i {
    font-size: 16px;
    color: #156a4c;
}

.language-selector .dropdown-menu {
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: 1px solid #dee2e6;
    padding: 8px 0;
    min-width: 200px;
}

.language-selector .dropdown-item {
    padding: 10px 16px;
    font-size: 14px;
    color: #1a1a1a;
    transition: all 0.2s;
}

.language-selector .dropdown-item:hover {
    background-color: #f8f9fa;
    color: #005C4B;
}

.language-selector .dropdown-item img {
    object-fit: cover;
    border-radius: 2px;
}

.language-selector .dropdown-item i.bx-check-circle {
    font-size: 16px;
}

@media (max-width: 768px) {
    .logo-container > div {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start !important;
    }

    .language-selector {
        width: 100%;
    }

    .language-selector .btn {
        width: 100%;
        justify-content: space-between;
    }
}
