.auth-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 2rem 1rem;
}

.auth-container {
    width: 100%;
    max-width: 440px;
}

.auth-split {
    display: flex;
    gap: 1.5rem;
    max-width: 920px;
    align-items: flex-start;
}

.auth-split .auth-card {
    flex: 1;
    min-width: 0;
}

.cek-card {
    max-height: 600px;
    overflow-y: auto;
}

@media (max-width: 860px) {
    .auth-split {
        flex-direction: column;
        max-width: 440px;
    }
    .cek-card {
        max-height: none;
    }
}

.auth-card {
    background: #fff;
    border-radius: 16px;
    padding: 2.5rem 2rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-logo {
    width: 64px;
    height: 64px;
    margin: 0 auto 1rem;
    display: block;
}

.auth-header h1 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 0.25rem;
}

.auth-header p {
    color: #6b7280;
    font-size: 0.95rem;
}

.auth-form .form-group {
    margin-bottom: 1.25rem;
}

.auth-form label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    color: #374151;
    margin-bottom: 0.4rem;
}

.auth-form input,
.auth-form select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1.5px solid #d1d5db;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.auth-form input:focus,
.auth-form select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.15);
}

.auth-form .btn-full {
    width: 100%;
    padding: 0.8rem;
    border: none;
    border-radius: 10px;
    background: #667eea;
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.auth-form .btn-full:hover {
    background: #5a6fd6;
}

.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: #6b7280;
}

.auth-footer a {
    color: #667eea;
    font-weight: 600;
}

.alert {
    padding: 0.75rem 1rem;
    border-radius: 10px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.alert-error {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.alert-success {
    background: #f0fdf4;
    color: #16a34a;
    border: 1px solid #bbf7d0;
}

.cek-result-card {
    margin-top: 1rem;
    background: #f9fafb;
    border-radius: 12px;
    padding: 1.25rem;
    border: 1px solid #e5e7eb;
}

.cek-result-header h3 {
    margin: 0 0 0.25rem;
    font-size: 1.1rem;
    color: #1a1a2e;
}

.cek-kelas {
    font-size: 0.85rem;
    color: #6b7280;
}

.cek-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    margin: 1rem 0;
}

.cek-stat {
    text-align: center;
    padding: 0.6rem 0.25rem;
    border-radius: 8px;
}

.cek-stat-num {
    display: block;
    font-size: 1.25rem;
    font-weight: 700;
}

.cek-stat-label {
    display: block;
    font-size: 0.7rem;
    color: #6b7280;
    margin-top: 0.15rem;
}

.cek-stat-success {
    background: #f0fdf4;
    color: #16a34a;
}

.cek-stat-warning {
    background: #fffbeb;
    color: #d97706;
}

.cek-stat-danger {
    background: #fef2f2;
    color: #dc2626;
}

.cek-total-tagihan,
.cek-total-tunggakan {
    font-size: 0.85rem;
    color: #374151;
    padding: 0.4rem 0;
}

.cek-total-tunggakan {
    color: #dc2626;
}

.cek-list {
    margin-top: 0.75rem;
}

.cek-list h4 {
    font-size: 0.85rem;
    color: #374151;
    margin-bottom: 0.4rem;
}

.cek-list-item {
    display: flex;
    justify-content: space-between;
    padding: 0.4rem 0;
    border-bottom: 1px solid #e5e7eb;
    font-size: 0.85rem;
}

.cek-list-item:last-child {
    border-bottom: none;
}

.cek-item-date {
    color: #6b7280;
}

.cek-item-amount {
    font-weight: 600;
    color: #1a1a2e;
}

.cek-payment-method {
    margin-top: 1rem;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 10px;
    padding: 0.85rem 1rem;
}

.cek-payment-title {
    font-size: 0.8rem;
    font-weight: 700;
    color: #166534;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    margin-bottom: 0.6rem;
}

.cek-payment-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.cek-payment-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.cek-payment-icon {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    flex-shrink: 0;
    overflow: hidden;
}

.cek-payment-icon img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.cek-payment-info {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.cek-payment-info strong {
    font-size: 0.82rem;
    color: #1a1a2e;
}

.cek-payment-info span {
    font-size: 0.72rem;
    color: #6b7280;
}

.auth-announcements {
    margin-top: 1.5rem;
    max-width: 920px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
}

.auth-announcement-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
    text-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.auth-announcement-header i {
    font-size: 1rem;
}

.auth-announcement-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.auth-announcement-item {
    background: rgba(255,255,255,0.95);
    border-radius: 14px;
    padding: 1.25rem 1.5rem;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    backdrop-filter: blur(10px);
    transition: transform 0.2s, box-shadow 0.2s;
}

.auth-announcement-item[onclick]:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.18);
}

.auth-announcement-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 0.5rem;
}

.auth-announcement-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.auth-announcement-title {
    margin: 0 0 0.35rem;
    font-size: 1.05rem;
    font-weight: 700;
    color: #1a1a2e;
}

.auth-announcement-preview {
    margin: 0;
    font-size: 0.85rem;
    color: #6b7280;
    line-height: 1.55;
    white-space: pre-line;
}

.auth-announcement-readmore {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    margin-top: 0.6rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: #667eea;
}

.auth-announcement-date {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.78rem;
    color: #9ca3af;
    white-space: nowrap;
}

.auth-announcement-share {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    background: #fff;
    color: #9ca3af;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
    padding: 0;
}

.auth-announcement-share:hover {
    background: #eff6ff;
    color: #2563EB;
    border-color: #bfdbfe;
}

.auth-announcement-share.copied {
    background: #dcfce7;
    color: #16a34a;
    border-color: #bbf7d0;
}

/* Modal */
.auth-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    backdrop-filter: blur(4px);
}

.auth-modal-overlay.active {
    display: flex;
}

.auth-modal {
    background: #fff;
    border-radius: 18px;
    width: 100%;
    max-width: 560px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.25);
    animation: authModalIn 0.25s ease;
}

@keyframes authModalIn {
    from { opacity: 0; transform: scale(0.95) translateY(10px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}

.auth-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem 0;
}

.auth-modal-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: #f3f4f6;
    color: #6b7280;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.2s, color 0.2s;
}

.auth-modal-close:hover {
    background: #e5e7eb;
    color: #1a1a2e;
}

.auth-modal-title {
    margin: 0.75rem 1.5rem 0;
    font-size: 1.2rem;
    font-weight: 700;
    color: #1a1a2e;
}

.auth-modal-date {
    padding: 0 1.5rem;
    margin-top: 0.4rem;
}

.auth-modal-date .auth-announcement-date {
    color: #9ca3af;
}

.auth-modal-body {
    padding: 1rem 1.5rem 1.5rem;
    overflow-y: auto;
    font-size: 0.9rem;
    color: #374151;
    line-height: 1.7;
    white-space: pre-line;
}

@media (max-width: 860px) {
    .auth-announcements {
        max-width: 440px;
    }
}

@media (max-width: 480px) {
    .auth-announcement-item {
        padding: 1rem 1.15rem;
    }
    .auth-modal {
        max-height: 90vh;
        border-radius: 14px;
    }
    .auth-modal-header,
    .auth-modal-title,
    .auth-modal-date,
    .auth-modal-body {
        padding-left: 1.15rem;
        padding-right: 1.15rem;
    }
}
