.idcard-page-bg {
    font-family: "Poppins", sans-serif;
    background: #fef6f6;
    width: 100%;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 36px 16px;
    box-sizing: border-box;
}

.idcard-card {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 8px 40px rgba(242, 22, 32, 0.12);
    padding: 40px 36px 32px;
    width: 100%;
    max-width: 440px;
    position: relative;
    overflow: hidden;
}

.idcard-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg, #f21620, #d4121b, #f21620);
}

.idcard-logo {
    text-align: center;
    margin-bottom: 20px;
}

.idcard-logo-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #ffffff;
    border: 3px solid #f21620;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    box-shadow: 0 4px 20px rgba(242, 22, 32, 0.15);
    transition: transform 0.3s ease;
}

.idcard-logo-circle:hover {
    transform: scale(1.05);
}

.idcard-logo-circle img {
    border-radius: 50%;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.idcard-title {
    color: #f21620;
    text-align: center;
    margin-bottom: 8px;
    font-size: 1.4rem;
    font-weight: 700;
    position: relative;
    padding-bottom: 14px;
}

.idcard-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #f21620, #d4121b);
    border-radius: 2px;
}

.idcard-subtitle {
    text-align: center;
    color: #666;
    font-size: 0.85rem;
    margin-bottom: 24px;
    font-weight: 300;
}

.idcard-alert {
    padding: 12px 14px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 0.82rem;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    line-height: 1.5;
}

.idcard-alert i {
    flex-shrink: 0;
    font-size: 1rem;
    margin-top: 0.1rem;
}

.idcard-alert-success {
    background: #fef6f6;
    color: #f21620;
    border-left: 4px solid #f21620;
}

.idcard-alert-error {
    background: #fee2e2;
    color: #c62828;
    border-left: 4px solid #f21620;
}

.idcard-group {
    margin-bottom: 20px;
}

.idcard-label {
    display: block;
    margin-bottom: 7px;
    font-weight: 600;
    font-size: 0.78rem;
    color: #333;
    letter-spacing: 0.03em;
}

.idcard-input-wrap {
    position: relative;
}

.idcard-input-wrap i {
    position: absolute;
    left: 13px;
    top: 50%;
    transform: translateY(-50%);
    color: #f21620;
    font-size: 0.85rem;
    pointer-events: none;
    opacity: 0.6;
}

.idcard-input {
    width: 100%;
    padding: 12px 12px 12px 38px;
    border: 2px solid #f0d0d1;
    border-radius: 10px;
    font-size: 0.88rem;
    font-family: "Poppins", sans-serif;
    background: #fefafa;
    color: #333;
    transition:
        border-color 0.3s,
        box-shadow 0.3s;
    box-sizing: border-box;
    outline: none;
}

.idcard-input:focus {
    border-color: #f21620;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(242, 22, 32, 0.08);
}

.idcard-input::placeholder {
    color: #aaa;
    font-weight: 300;
}

.idcard-helper {
    font-size: 0.7rem;
    color: #888;
    margin-top: 6px;
    font-weight: 300;
}

.idcard-btn {
    width: 100%;
    padding: 13px 16px;
    background: linear-gradient(135deg, #f21620, #d4121b);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-family: "Poppins", sans-serif;
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 16px rgba(242, 22, 32, 0.3);
    transition: all 0.3s;
}

.idcard-btn:hover {
    background: linear-gradient(135deg, #d4121b, #b00f17);
    box-shadow: 0 6px 24px rgba(242, 22, 32, 0.4);
    transform: translateY(-2px);
}

.idcard-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(242, 22, 32, 0.2);
}

.idcard-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.idcard-otp-section {
    animation: idcard-fadeIn 0.5s ease;
}

.idcard-divider {
    height: 1px;
    background: #f0d0d1;
    margin: 1.5rem 0;
    position: relative;
}

.idcard-divider span {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    padding: 0 0.7rem;
    font-size: 0.7rem;
    color: #888;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-family: "Poppins", sans-serif;
    font-weight: 500;
}

.idcard-resend-row {
    text-align: center;
    margin-top: 16px;
    font-size: 0.8rem;
    color: #666;
}

.idcard-resend-link {
    color: #f21620;
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.2s;
}

.idcard-resend-link:hover {
    text-decoration: underline;
    color: #d4121b;
}

.idcard-bottombar {
    height: 4px;
    background: linear-gradient(90deg, #f21620, #d4121b, #f21620);
    margin: 28px -36px -32px;
    border-radius: 0 0 16px 16px;
}

.idcard-security-note {
    margin-top: 16px;
    font-size: 0.68rem;
    color: #999;
    text-align: center;
    line-height: 1.6;
}

.idcard-security-note i {
    color: #f21620;
    margin-right: 4px;
}

@keyframes idcard-fadeIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 480px) {
    .idcard-card {
        padding: 28px 18px 22px;
    }
    .idcard-bottombar {
        margin: 20px -18px -22px;
    }
    .idcard-title {
        font-size: 1.15rem;
    }
    .idcard-logo-circle {
        width: 65px;
        height: 65px;
        padding: 10px;
    }
}

.jletter-footer-note {
    text-align: center;
    margin-top: 18px;
    font-size: 0.78rem;
    color: #666;
}

.jletter-footer-note a {
    color: #f21620;
    text-decoration: none;
    font-weight: 600;
}

.jletter-footer-note a:hover {
    text-decoration: underline;
}

.jletter-back-btn {
    margin-top: 16px;
    text-align: center;
}

.jletter-back-btn-secondary {
    width: 100%;
    padding: 13px 16px;
    background: transparent;
    color: #f21620;
    border: 2px solid #f21620;
    border-radius: 10px;
    font-family: "Inter", sans-serif;
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    transition: all 0.3s;
    box-sizing: border-box;
}

.jletter-back-btn-secondary:hover {
    background: #fef6f6;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(242, 22, 32, 0.15);
    text-decoration: none;
}

.jletter-back-btn-secondary:active {
    transform: translateY(0);
}

.jletter-back-btn-secondary i {
    color: #f21620;
    font-size: 0.95rem;
}

body .label-icon {
    color: #f21620;
    margin-right: 4px;
}

body .btn-icon {
    margin-right: 4px;
}

body .is-hidden {
    display: none;
}
