/* =============================================================
   public-pages.css  —  Shared styles for all public guest pages
   (login, form-recruitment, form-data-lapangan, dll.)
   ============================================================= */

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

/* ── RESET ── */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* ─────────────────────────────────────────
   BACKGROUND & LAYOUT BASE
   ───────────────────────────────────────── */

/* Shared background for all public pages */
.pub-bg {
    min-height: 100vh;
    background-color: #EEF3FA;
    background-image:
        radial-gradient(ellipse 70% 50% at 10% 5%, rgba(180, 210, 255, 0.5) 0%, transparent 60%),
        radial-gradient(ellipse 50% 40% at 90% 90%, rgba(160, 220, 200, 0.25) 0%, transparent 55%);
    font-family: 'Plus Jakarta Sans', sans-serif;
    position: relative;
}

/* Dot pattern overlay */
.pub-bg::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: radial-gradient(circle, rgba(100, 140, 200, 0.1) 1px, transparent 1px);
    background-size: 28px 28px;
    pointer-events: none;
    z-index: 0;
}

/* ── FLOATING ORBS ── */
.pub-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
    z-index: 0;
    animation: pubFloat 14s ease-in-out infinite;
}

.pub-orb-1 {
    width: 380px;
    height: 380px;
    background: rgba(130, 180, 255, 0.2);
    top: -80px;
    left: -80px;
    animation-delay: 0s;
}

.pub-orb-2 {
    width: 260px;
    height: 260px;
    background: rgba(100, 210, 180, 0.16);
    bottom: -60px;
    right: -60px;
    animation-delay: -6s;
}

.pub-orb-3 {
    width: 200px;
    height: 200px;
    background: rgba(170, 200, 255, 0.2);
    top: 45%;
    right: 8%;
    animation-delay: -9s;
}

@keyframes pubFloat {

    0%,
    100% {
        transform: translate(0, 0);
    }

    40% {
        transform: translate(16px, -16px);
    }

    70% {
        transform: translate(-10px, 10px);
    }
}

/* ── CARD ENTRANCE ANIMATION ── */
@keyframes pubCardIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ─────────────────────────────────────────
   LEFT PANEL (sidebar / info panel)
   ───────────────────────────────────────── */

.pub-panel-left {
    background: linear-gradient(145deg, #1A5FC8 0%, #1040A0 55%, #0C2E78 100%);
    border-radius: 20px;
    padding: 2rem 1.75rem;
    box-shadow: 0 20px 50px rgba(16, 64, 160, 0.25);
    animation: pubCardIn 0.55s cubic-bezier(0.16, 1, 0.3, 1) both;
    overflow: hidden;
    position: relative;
}

.pub-panel-left::before {
    content: '';
    position: absolute;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    top: -80px;
    right: -80px;
    pointer-events: none;
}

.pub-panel-left::after {
    content: '';
    position: absolute;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    bottom: 20px;
    left: -50px;
    pointer-events: none;
}

/* ── BRAND ── */
.pub-brand {
    display: flex;
    align-items: center;
    gap: 11px;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

.pub-brand-icon {
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, 0.13);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.pub-brand-icon svg {
    width: 20px;
    height: 20px;
}

.pub-brand-name {
    font-family: 'Sora', sans-serif;
    font-size: 12.5px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.4;
}

.pub-brand-name small {
    display: block;
    font-size: 11px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.42);
    font-family: 'Plus Jakarta Sans', sans-serif;
}

/* ── LEFT PANEL TITLE & DESC ── */
.pub-left-title {
    font-family: 'Sora', sans-serif;
    font-size: 20px;
    font-weight: 600;
    color: #fff;
    line-height: 1.4;
    margin-bottom: 0.6rem;
    position: relative;
    z-index: 1;
}

.pub-left-title em {
    font-style: normal;
    color: #7DD3C8;
}

.pub-left-desc {
    font-size: 12.5px;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.7;
    margin-bottom: 1.75rem;
    position: relative;
    z-index: 1;
}

/* ── STEP LIST ── */
.pub-steps {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

.pub-step {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.pub-step-num {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 600;
    color: #7DD3C8;
    flex-shrink: 0;
    margin-top: 1px;
}

.pub-step-text {
    font-size: 12.5px;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.6;
}

.pub-step-text strong {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    display: block;
}

/* ── QUOTE BLOCK ── */
.pub-quote {
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 14px;
    padding: 1.1rem 1.25rem;
    position: relative;
    z-index: 1;
}

.pub-quote-mark {
    font-size: 28px;
    color: #7DD3C8;
    font-family: Georgia, serif;
    line-height: 1;
    margin-bottom: 6px;
}

.pub-quote-text {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.7;
    font-style: italic;
}

.pub-quote-author {
    margin-top: 8px;
    font-size: 10.5px;
    color: rgba(255, 255, 255, 0.28);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

/* ─────────────────────────────────────────
   RIGHT PANEL (white form area)
   ───────────────────────────────────────── */

.pub-panel-right {
    background: #ffffff;
    border-radius: 20px;
    padding: 2.5rem 2.25rem;
    box-shadow:
        0 0 0 1px rgba(100, 140, 210, 0.12),
        0 24px 60px rgba(60, 100, 180, 0.1);
    animation: pubCardIn 0.55s cubic-bezier(0.16, 1, 0.3, 1) 0.08s both;
}

/* ── FORM HEADER ── */
.pub-form-header {
    margin-bottom: 1.5rem;
}

.pub-form-header h2 {
    font-family: 'Sora', sans-serif;
    font-size: 20px;
    font-weight: 600;
    color: #0F1F40;
    margin-bottom: 4px;
}

.pub-form-header p {
    font-size: 13.5px;
    color: #8A99B3;
}

.pub-divider {
    height: 1px;
    background: #EDF0F7;
    margin-bottom: 1.75rem;
}

/* ── SECTION TITLE ── */
.pub-section-title {
    font-family: 'Sora', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #1A5FC8;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pub-section-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #EDF0F7;
}

/* ─────────────────────────────────────────
   ALERTS
   ───────────────────────────────────────── */

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.alert-success-modern,
.alert-danger-modern,
.alert-modern {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    border-radius: 10px;
    padding: 12px 14px;
    margin-bottom: 1.25rem;
    animation: slideDown 0.3s ease;
}

.alert-success-modern {
    background: #EBF9F5;
    border: 1px solid #A7DDD0;
}

.alert-success-modern svg {
    stroke: #0F6E56;
}

.alert-success-modern .alt-text {
    color: #0A5240;
}

.alert-danger-modern,
.alert-modern {
    background: #FEF2F2;
    border: 1px solid #FECACA;
}

.alert-danger-modern svg,
.alert-modern svg {
    stroke: #EF4444;
}

.alert-danger-modern .alt-text,
.alert-modern-text {
    color: #B91C1C;
}

.alert-success-modern svg,
.alert-danger-modern svg,
.alert-modern svg {
    width: 15px;
    height: 15px;
    fill: none;
    stroke-width: 2;
    flex-shrink: 0;
    margin-top: 1px;
}

.alt-text,
.alert-modern-text {
    font-size: 13px;
    flex: 1;
    line-height: 1.5;
}

.alt-close,
.alert-modern-close {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    color: inherit;
    opacity: 0.4;
    padding: 0;
}

.alt-close:hover,
.alert-modern-close:hover {
    opacity: 0.8;
}

/* ─────────────────────────────────────────
   FORM FIELDS
   ───────────────────────────────────────── */

.pub-field {
    margin-bottom: 1.1rem;
}

.pub-label {
    display: block;
    font-size: 11.5px;
    font-weight: 600;
    color: #6B7A99;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    margin-bottom: 6px;
}

.pub-label .req {
    color: #EF4444;
    margin-left: 2px;
}

.pub-input,
.pub-select,
.pub-textarea {
    width: 100%;
    background: #F5F7FB;
    border: 1px solid #E0E7F0;
    border-radius: 10px;
    font-size: 14px;
    color: #0F1F40;
    font-family: 'Plus Jakarta Sans', sans-serif;
    outline: none;
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.pub-input,
.pub-select {
    height: 44px;
    padding: 0 14px;
}

.pub-textarea {
    padding: 12px 14px;
    resize: vertical;
    min-height: 90px;
    line-height: 1.6;
}

.pub-input::placeholder,
.pub-textarea::placeholder {
    color: #B0BCCE;
}

.pub-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23B0BCCE' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
    cursor: pointer;
}

.pub-input:focus,
.pub-select:focus,
.pub-textarea:focus {
    border-color: #1A5FC8;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(26, 95, 200, 0.1);
}

.pub-input.is-invalid,
.pub-select.is-invalid,
.pub-textarea.is-invalid {
    border-color: #FCA5A5 !important;
    background: #FEF2F2 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.08) !important;
}

.pub-input.is-valid,
.pub-select.is-valid,
.pub-textarea.is-valid {
    border-color: #6EE7B7 !important;
    background: #F0FDF9 !important;
}

/* Input with icon */
.pub-input-shell {
    position: relative;
    display: flex;
    align-items: center;
}

.pub-input-icon {
    position: absolute;
    left: 13px;
    width: 15px;
    height: 15px;
    stroke: #B0BCCE;
    fill: none;
    stroke-width: 2;
    pointer-events: none;
    z-index: 1;
}

.pub-input-shell .pub-input {
    padding-left: 40px;
    padding-right: 44px;
}

/* Eye toggle for password */
.pub-eye-toggle {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    cursor: pointer;
    color: #B0BCCE;
    padding: 4px;
    display: flex;
    align-items: center;
    transition: color 0.2s;
}

.pub-eye-toggle:hover {
    color: #6B7A99;
}

.pub-eye-toggle svg {
    width: 15px;
    height: 15px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}

/* Hint & error text */
.pub-hint {
    font-size: 11.5px;
    color: #B0BCCE;
    margin-top: 4px;
    display: block;
}

.pub-error {
    font-size: 12px;
    color: #EF4444;
    margin-top: 4px;
    display: block;
}

/* 2-col grid row */
.pub-row2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

/* ─────────────────────────────────────────
   CUSTOM CHECKBOX
   ───────────────────────────────────────── */

.pub-check {
    display: flex;
    align-items: center;
    gap: 9px;
    cursor: pointer;
    user-select: none;
}

.pub-check input[type="checkbox"] {
    display: none;
}

.pub-check-visual {
    width: 17px;
    height: 17px;
    border: 1.5px solid #C8D3E8;
    border-radius: 5px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
}

.pub-check input:checked+.pub-check-visual {
    background: #1A5FC8;
    border-color: #1A5FC8;
}

.pub-check-visual svg {
    width: 10px;
    height: 10px;
    stroke: #fff;
    fill: none;
    stroke-width: 3;
    opacity: 0;
    transition: opacity 0.15s;
}

.pub-check input:checked+.pub-check-visual svg {
    opacity: 1;
}

.pub-check-text {
    font-size: 13px;
    color: #7A8AA8;
}

/* ─────────────────────────────────────────
   RADIO GROUP
   ───────────────────────────────────────── */

.pub-radio-group {
    display: flex;
    gap: .75rem;
    flex-wrap: wrap;
}

.pub-radio-option {
    display: flex;
    align-items: center;
    gap: 9px;
    cursor: pointer;
    padding: 9px 16px;
    border: 1px solid #E0E7F0;
    border-radius: 10px;
    background: #F5F7FB;
    transition: all 0.2s;
    user-select: none;
}

.pub-radio-option:hover,
.pub-radio-option.selected {
    border-color: #1A5FC8;
    background: #EEF4FF;
}

.pub-radio-option input[type="radio"] {
    display: none;
}

.pub-radio-visual {
    width: 18px;
    height: 18px;
    border: 2px solid #C8D3E8;
    border-radius: 50%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s;
}

.pub-radio-visual::after {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #1A5FC8;
    opacity: 0;
    transform: scale(0);
    transition: all 0.2s;
}

.pub-radio-option.selected .pub-radio-visual {
    border-color: #1A5FC8;
}

.pub-radio-option.selected .pub-radio-visual::after {
    opacity: 1;
    transform: scale(1);
}

.pub-radio-label {
    font-size: 13.5px;
    color: #3A4A6B;
    font-weight: 500;
}

.pub-radio-option.selected .pub-radio-label {
    color: #1A5FC8;
    font-weight: 600;
}

/* ─────────────────────────────────────────
   FILE UPLOAD ZONE
   ───────────────────────────────────────── */

.pub-file-zone {
    width: 100%;
    background: #F5F7FB;
    border: 1.5px dashed #C8D3E8;
    border-radius: 10px;
    padding: 14px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

.pub-file-zone:hover,
.pub-file-zone.drag-over {
    border-color: #1A5FC8;
    background: #EEF4FF;
}

.pub-file-zone.has-file {
    border-color: #6EE7B7;
    border-style: solid;
    background: #F0FDF9;
}

.pub-file-zone.is-invalid {
    border-color: #FCA5A5;
    background: #FEF2F2;
}

.pub-file-zone input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    width: 100%;
    height: 100%;
}

.pub-file-label {
    font-size: 13px;
    color: #6B7A99;
    pointer-events: none;
}

.pub-file-label strong {
    display: block;
    color: #0F1F40;
    font-weight: 500;
    margin-bottom: 2px;
}

.pub-file-label small {
    font-size: 11.5px;
    color: #B0BCCE;
}

.pub-file-zone.has-file .pub-file-label {
    color: #0F6E56;
}

.pub-file-zone.has-file .pub-file-label strong {
    color: #065F46;
}

/* ─────────────────────────────────────────
   SUBMIT BUTTON
   ───────────────────────────────────────── */

.pub-btn-submit {
    width: 100%;
    height: 48px;
    background: linear-gradient(135deg, #1A5FC8 0%, #1040A0 100%);
    border: none;
    border-radius: 11px;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    font-family: 'Sora', sans-serif;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    letter-spacing: 0.01em;
    transition: all 0.2s;
    box-shadow: 0 4px 16px rgba(26, 95, 200, 0.28);
    position: relative;
    overflow: hidden;
}

.pub-btn-submit::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.2s;
}

.pub-btn-submit:hover::before {
    opacity: 1;
}

.pub-btn-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 28px rgba(26, 95, 200, 0.36);
}

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

.pub-btn-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.pub-btn-submit svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: rgba(255, 255, 255, 0.85);
    stroke-width: 2;
}

/* ── SPINNER ── */
.pub-spinner {
    width: 17px;
    height: 17px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: pubSpin 0.7s linear infinite;
    display: none;
}

@keyframes pubSpin {
    to {
        transform: rotate(360deg);
    }
}

/* ── PROGRESS BAR ── */
.pub-progress-wrap {
    margin-bottom: 1.5rem;
}

.pub-progress-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}

.pub-progress-label {
    font-size: 12px;
    color: #8A99B3;
}

.pub-progress-pct {
    font-size: 12px;
    font-weight: 600;
    color: #1A5FC8;
}

.pub-progress-bar {
    height: 4px;
    background: #EDF0F7;
    border-radius: 4px;
    overflow: hidden;
}

.pub-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #1A5FC8, #1D9E75);
    border-radius: 4px;
    transition: width 0.4s ease;
    width: 0%;
}

/* ─────────────────────────────────────────
   FOOTER
   ───────────────────────────────────────── */

.pub-footer {
    text-align: center;
    margin-top: 1.75rem;
    font-size: 11.5px;
    color: #B0BCCE;
}

/* ─────────────────────────────────────────
   RESPONSIVE
   ───────────────────────────────────────── */

@media (max-width: 768px) {
    .pub-wrap {
        flex-direction: column;
    }

    .pub-panel-left {
        width: 100% !important;
        position: static !important;
    }

    .pub-steps {
        display: none;
    }

    .pub-row2 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .pub-panel-right {
        padding: 2rem 1.5rem;
        border-radius: 22px;
    }
}
