/* ==========================================================================
   Dream Pick Pvt Ltd - Premium Authentication & App Design System
   Clean, light base, modern typography, accessible contrast, mobile-first
   ========================================================================== */

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

:root {
    --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    
    /* Premium Color Palette */
    --color-bg: #f8fafc;
    --color-surface: #ffffff;
    --color-surface-hover: #f1f5f9;
    --color-border: #e2e8f0;
    --color-border-focus: #2563eb;
    
    --color-text-main: #0f172a;
    --color-text-muted: #64748b;
    --color-text-light: #94a3b8;
    
    --color-primary: #1e40af;
    --color-primary-hover: #1d4ed8;
    --color-primary-light: #eff6ff;
    
    --color-success: #16a34a;
    --color-success-bg: #f0fdf4;
    --color-success-border: #bbf7d0;
    
    --color-danger: #dc2626;
    --color-danger-bg: #fef2f2;
    --color-danger-border: #fecaca;

    --color-warning: #d97706;
    --color-warning-bg: #fffbeb;
    --color-warning-border: #fde68a;

    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.07), 0 2px 4px -2px rgb(0 0 0 / 0.05);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.08), 0 4px 6px -4px rgb(0 0 0 / 0.03);
    --shadow-card: 0 20px 25px -5px rgb(15 23 42 / 0.06), 0 8px 10px -6px rgb(15 23 42 / 0.04);

    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-full: 9999px;
}

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

body {
    font-family: var(--font-sans);
    background-color: var(--color-bg);
    color: var(--color-text-main);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Authentication Page Shell */
.auth-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 1rem;
}

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

.auth-container.wide {
    max-width: 600px;
}

/* Brand Header */
.auth-brand {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-brand .brand-logo-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
    color: #ffffff;
    border-radius: var(--radius-lg);
    font-weight: 700;
    font-size: 1.5rem;
    box-shadow: 0 8px 16px -4px rgba(37, 99, 235, 0.35);
    margin-bottom: 0.75rem;
}

.auth-brand h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text-main);
    letter-spacing: -0.02em;
}

.auth-brand p {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    margin-top: 0.25rem;
}

/* Card Container */
.auth-card {
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    padding: 2rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.auth-header-card {
    margin-bottom: 1.5rem;
}

.auth-header-card h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-text-main);
}

.auth-header-card p {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    margin-top: 0.25rem;
}

/* Alert Notification Badges */
.alert {
    padding: 0.875rem 1rem;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    line-height: 1.4;
}

.alert-danger {
    background-color: var(--color-danger-bg);
    border: 1px solid var(--color-danger-border);
    color: var(--color-danger);
}

.alert-success {
    background-color: var(--color-success-bg);
    border: 1px solid var(--color-success-border);
    color: var(--color-success);
}

.alert-warning {
    background-color: var(--color-warning-bg);
    border: 1px solid var(--color-warning-border);
    color: var(--color-warning);
}

/* Form Groups & Inputs */
.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--color-text-main);
    margin-bottom: 0.375rem;
}

.form-label .required {
    color: var(--color-danger);
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.form-control {
    width: 100%;
    height: 46px;
    padding: 0.625rem 0.875rem;
    font-family: inherit;
    font-size: 0.9375rem;
    color: var(--color-text-main);
    background-color: var(--color-surface);
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-md);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    outline: none;
}

.form-control:focus {
    border-color: var(--color-border-focus);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.form-control::placeholder {
    color: var(--color-text-light);
}

.form-control.is-invalid {
    border-color: var(--color-danger);
    background-color: #fffafb;
}

.form-control.is-invalid:focus {
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12);
}

/* Password Toggle Icon */
.btn-password-toggle {
    position: absolute;
    right: 0.75rem;
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--color-text-muted);
    font-size: 0.8125rem;
    font-weight: 600;
    padding: 0.25rem;
}

.btn-password-toggle:hover {
    color: var(--color-text-main);
}

/* Validation Feedback text */
.invalid-feedback {
    display: block;
    font-size: 0.75rem;
    color: var(--color-danger);
    margin-top: 0.25rem;
    font-weight: 500;
}

/* Sponsor validation badge */
.sponsor-feedback {
    margin-top: 0.375rem;
    font-size: 0.8125rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.sponsor-feedback.valid {
    color: var(--color-success);
}

.sponsor-feedback.invalid {
    color: var(--color-danger);
}

/* Grid Layouts for Wide Form (Registration) */
.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 640px) {
    .form-row.two-col {
        grid-template-columns: 1fr 1fr;
    }
}

/* Form Helper & Links */
.form-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
    font-size: 0.8125rem;
}

.form-options a, .auth-footer a {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 600;
}

.form-options a:hover, .auth-footer a:hover {
    text-decoration: underline;
}

/* Primary Button */
.btn-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 48px;
    padding: 0.75rem 1.5rem;
    background-color: var(--color-primary);
    color: #ffffff;
    font-family: inherit;
    font-size: 0.9375rem;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(30, 64, 175, 0.25);
    transition: background-color 0.15s ease, transform 0.1s ease;
}

.btn-primary:hover {
    background-color: var(--color-primary-hover);
}

.btn-primary:active {
    transform: translateY(1px);
}

.btn-primary:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

/* Admin Specific Accent */
.admin-theme .auth-brand .brand-logo-badge {
    background: linear-gradient(135deg, #0f172a 0%, #334155 100%);
    box-shadow: 0 8px 16px -4px rgba(15, 23, 42, 0.35);
}

.admin-theme .btn-primary {
    background-color: #0f172a;
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.25);
}

.admin-theme .btn-primary:hover {
    background-color: #1e293b;
}

/* Footer & Subtext */
.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

.portal-switch {
    margin-top: 2rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--color-border);
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    font-size: 0.8125rem;
}

.portal-switch a {
    color: var(--color-text-muted);
    text-decoration: none;
}

.portal-switch a:hover {
    color: var(--color-primary);
}

/* Mobile responsive padding */
@media (max-width: 480px) {
    .auth-card {
        padding: 1.5rem 1.25rem;
        border-radius: var(--radius-md);
    }
}

/* ==========================================================================
   Dream Pick Pvt Ltd - Official Certificate & Welcome Letter Modal
   ========================================================================== */
.dp-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.82);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 1.25rem 0.75rem;
    overflow-y: auto;
    opacity: 0;
    transition: opacity 0.25s ease-out;
}

.dp-modal-overlay.is-open {
    display: flex;
    opacity: 1;
}

.dp-modal-dialog {
    background: #0f172a;
    border-radius: 18px;
    width: 100%;
    max-width: 640px;
    box-shadow: 0 30px 70px -15px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.1);
    position: relative;
    max-height: 95vh;
    overflow-y: auto;
    animation: dpModalSlideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    margin: auto;
    padding: 0.5rem;
}

@keyframes dpModalSlideUp {
    from {
        opacity: 0;
        transform: translateY(24px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.dp-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid #cbd5e1;
    cursor: pointer;
    font-size: 1.5rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #475569;
    transition: all 0.2s ease;
    z-index: 30;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.dp-modal-close:hover {
    background: #ffffff;
    color: #0f172a;
    transform: scale(1.08);
}

/* ==========================================================================
   OFFICIAL CERTIFICATE & LETTER SHEET
   ========================================================================== */
.dp-certificate-sheet {
    background: #ffffff linear-gradient(180deg, #ffffff 0%, #fdfcf9 60%, #faf8f3 100%);
    border: 4px double #1e3a8a;
    outline: 2px solid #d4af37;
    outline-offset: -8px;
    border-radius: 12px;
    padding: 2.25rem 2rem 1.75rem;
    position: relative;
    box-shadow: inset 0 0 45px rgba(212, 175, 55, 0.08), 0 4px 15px rgba(0, 0, 0, 0.05);
    color: #1e293b;
    overflow: hidden;
}

/* Certificate Corner Accents */
.dp-cert-corner {
    position: absolute;
    width: 22px;
    height: 22px;
    border-color: #d4af37;
    border-style: solid;
    pointer-events: none;
    z-index: 5;
}
.dp-corner-tl { top: 12px; left: 12px; border-width: 3px 0 0 3px; }
.dp-corner-tr { top: 12px; right: 12px; border-width: 3px 3px 0 0; }
.dp-corner-bl { bottom: 12px; left: 12px; border-width: 0 0 3px 3px; }
.dp-corner-br { bottom: 12px; right: 12px; border-width: 0 3px 3px 0; }

/* Certificate Background Watermark */
.dp-cert-watermark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-15deg);
    font-size: 5.5rem;
    font-weight: 900;
    color: rgba(30, 58, 138, 0.04);
    user-select: none;
    pointer-events: none;
    letter-spacing: 6px;
    z-index: 1;
    white-space: nowrap;
}

/* Certificate Header / Letterhead */
.dp-cert-header {
    text-align: center;
    position: relative;
    z-index: 2;
    padding-bottom: 0.85rem;
    border-bottom: 2px double #e2e8f0;
    margin-bottom: 1.15rem;
}

.dp-cert-crest {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
    color: #ffffff;
    border: 3px solid #d4af37;
    border-radius: 50%;
    font-size: 1.45rem;
    font-weight: 800;
    letter-spacing: 1px;
    box-shadow: 0 6px 16px rgba(30, 58, 138, 0.25);
    margin-bottom: 0.4rem;
}

.dp-cert-company {
    font-size: 1.35rem;
    font-weight: 800;
    color: #1e3a8a;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 0.2rem;
    line-height: 1.2;
}

.dp-cert-subhead {
    font-size: 0.71875rem;
    color: #64748b;
    font-weight: 600;
    letter-spacing: 0.4px;
    margin-bottom: 0.65rem;
}

.dp-cert-title-badge {
    display: inline-block;
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
    color: #fef08a;
    padding: 5px 16px;
    border-radius: 9999px;
    font-size: 0.78125rem;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    box-shadow: 0 3px 8px rgba(30, 58, 138, 0.2);
    border: 1px solid #d4af37;
    margin-bottom: 0.5rem;
}

.dp-cert-meta-strip {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    color: #64748b;
    padding: 0.35rem 0.5rem 0;
    border-top: 1px solid #f1f5f9;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

/* Formal Letter Salutation */
.dp-cert-body {
    position: relative;
    z-index: 2;
    margin-bottom: 1.15rem;
}

.dp-cert-greeting {
    font-size: 0.85rem;
    color: #334155;
    line-height: 1.55;
    margin-bottom: 0.95rem;
}

.dp-cert-greeting strong {
    color: #0f172a;
}

.dp-cert-recipient {
    font-size: 1.25rem;
    font-weight: 800;
    color: #1e3a8a;
    margin: 0.2rem 0 0.45rem;
    padding: 0.2rem 0;
    border-bottom: 1px dashed #cbd5e1;
    display: inline-block;
    letter-spacing: 0.5px;
}

/* Official Credentials Schedule Table */
.dp-cert-table-wrap {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 1.15rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
}

.dp-cert-table-header {
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
    color: #fef08a;
    padding: 0.5rem 0.875rem;
    font-size: 0.71875rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dp-cert-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.84rem;
}

.dp-cert-table tr {
    border-bottom: 1px solid #f1f5f9;
}
.dp-cert-table tr:last-child {
    border-bottom: none;
}

.dp-cert-table th {
    width: 38%;
    background: #f8fafc;
    color: #475569;
    font-weight: 700;
    padding: 0.6rem 0.875rem;
    text-align: left;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    border-right: 1px solid #e2e8f0;
}

.dp-cert-table td {
    padding: 0.6rem 0.875rem;
    color: #0f172a;
    font-weight: 600;
    vertical-align: middle;
}

.dp-cert-value-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.dp-cert-mono {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.dp-cert-highlight-id {
    font-size: 1.05rem;
    font-weight: 800;
    color: #1e40af;
    letter-spacing: 0.5px;
}

.dp-cert-highlight-pass {
    font-size: 0.95rem;
    font-weight: 700;
    color: #0f172a;
}

/* Formal Seal and Signature Section */
.dp-cert-endorsement {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding-top: 0.85rem;
    border-top: 1px dashed #cbd5e1;
    position: relative;
    z-index: 2;
}

/* Golden Metallic Official Seal */
.dp-cert-seal {
    width: 86px;
    height: 86px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #fef3c7 0%, #fde68a 45%, #d97706 100%);
    border: 3px dashed #92400e;
    outline: 2px solid #b45309;
    outline-offset: -5px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #78350f;
    box-shadow: 0 6px 14px rgba(180, 83, 9, 0.25), inset 0 2px 4px rgba(255, 255, 255, 0.6);
    flex-shrink: 0;
    user-select: none;
    transform: rotate(-5deg);
}

.dp-seal-star {
    font-size: 0.625rem;
    letter-spacing: 1px;
    line-height: 1;
}

.dp-seal-company {
    font-size: 0.53125rem;
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin: 2px 0;
}

.dp-seal-tag {
    font-size: 0.5rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: #78350f;
    color: #fef3c7;
    padding: 1px 4px;
    border-radius: 2px;
    line-height: 1.2;
}

/* Signature Block */
.dp-cert-signature-box {
    text-align: right;
    flex-shrink: 0;
}

.dp-cert-sign-script {
    font-family: 'Brush Script MT', 'Segoe Script', cursive, sans-serif;
    font-size: 1.45rem;
    color: #1e3a8a;
    line-height: 1;
    margin-bottom: 0.25rem;
    transform: rotate(-2deg);
}

.dp-cert-sign-line {
    width: 150px;
    height: 1px;
    background: #475569;
    margin: 0.25rem 0 0.35rem auto;
}

.dp-cert-sign-title {
    font-size: 0.75rem;
    font-weight: 800;
    color: #0f172a;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dp-cert-sign-dept {
    font-size: 0.6875rem;
    color: #64748b;
    font-style: italic;
}

/* ==========================================================================
   UTILITY & SHARE CONTROLS (OUTSIDE CERTIFICATE SHEET)
   ========================================================================== */
.dp-modal-controls {
    padding: 0.75rem 0.5rem 0.35rem;
}

.dp-btn-copy-mini {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 3px 8px;
    font-size: 0.6875rem;
    font-weight: 700;
    color: #334155;
    cursor: pointer;
    transition: all 0.15s ease;
    flex-shrink: 0;
}

.dp-btn-copy-mini:hover {
    background: #f1f5f9;
    border-color: #94a3b8;
    color: #0f172a;
}

.dp-actions-wrap {
    display: flex;
    align-items: center;
    gap: 5px;
}

.dp-security-note {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    background: rgba(254, 243, 199, 0.95);
    border: 1px solid #fde68a;
    border-radius: 10px;
    padding: 0.6rem 0.85rem;
    font-size: 0.75rem;
    color: #92400e;
    margin-bottom: 0.875rem;
    line-height: 1.4;
}

.dp-security-note svg {
    flex-shrink: 0;
    margin-top: 1px;
}

.dp-share-section {
    margin-bottom: 0.875rem;
}

.dp-share-title {
    font-size: 0.71875rem;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
    text-align: center;
}

.dp-share-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
}

.dp-share-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 0.65rem 0.35rem;
    border-radius: 10px;
    border: none;
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    text-decoration: none;
}

.dp-share-btn:hover {
    transform: translateY(-2px);
}

.dp-btn-whatsapp {
    background: #25D366;
    box-shadow: 0 4px 10px rgba(37, 211, 102, 0.25);
}
.dp-btn-whatsapp:hover {
    background: #20bd5a;
    box-shadow: 0 6px 14px rgba(37, 211, 102, 0.35);
}

.dp-btn-instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    box-shadow: 0 4px 10px rgba(220, 39, 67, 0.25);
}
.dp-btn-instagram:hover {
    box-shadow: 0 6px 14px rgba(220, 39, 67, 0.35);
}

.dp-btn-facebook {
    background: #1877F2;
    box-shadow: 0 4px 10px rgba(24, 119, 242, 0.25);
}
.dp-btn-facebook:hover {
    background: #166fe5;
    box-shadow: 0 6px 14px rgba(24, 119, 242, 0.35);
}

.dp-btn-print {
    background: linear-gradient(135deg, #1e3a8a 0%, #0284c7 100%);
    box-shadow: 0 4px 10px rgba(2, 132, 199, 0.25);
    border: 1px solid #d4af37;
}
.dp-btn-print:hover {
    box-shadow: 0 6px 14px rgba(2, 132, 199, 0.35);
}

.dp-modal-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.dp-btn-copy-all {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 0.75rem;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    font-size: 0.84rem;
    font-weight: 700;
    color: #334155;
    cursor: pointer;
    transition: all 0.15s ease;
}

.dp-btn-copy-all:hover {
    background: #f8fafc;
    border-color: #94a3b8;
    color: #0f172a;
}

.dp-btn-login-proceed {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 0.85rem;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #ffffff;
    border-radius: 10px;
    font-size: 0.9375rem;
    font-weight: 800;
    text-decoration: none;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.4);
    transition: all 0.2s ease;
    letter-spacing: 0.3px;
}

.dp-btn-login-proceed:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.5);
    transform: translateY(-1px);
    color: #ffffff;
}

/* Toast */
.dp-toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(40px);
    background: #0f172a;
    color: #ffffff;
    padding: 10px 18px;
    border-radius: 9999px;
    font-size: 0.8125rem;
    font-weight: 600;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.4);
    z-index: 100000;
    opacity: 0;
    pointer-events: none;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    white-space: nowrap;
}

.dp-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ==========================================================================
   MOBILE RESPONSIVENESS (CENTERED AUTH & CERTIFICATE MODAL)
   ========================================================================== */
@media (max-width: 640px) {
    .auth-wrapper {
        padding: 0.75rem 0.5rem !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .auth-container,
    .auth-container.wide {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 auto !important;
        padding: 0 !important;
    }
    .auth-card {
        padding: 1.15rem 0.85rem !important;
        border-radius: var(--radius-md) !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .auth-brand {
        margin-bottom: 1.25rem !important;
    }
    .form-row {
        grid-template-columns: 1fr !important;
        gap: 0.75rem !important;
    }
    .input-group input,
    .input-group select {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    .dp-modal-dialog {
        padding: 0.35rem;
        border-radius: 14px;
        max-height: 96vh;
    }
    .dp-certificate-sheet {
        padding: 1.5rem 1rem 1.25rem;
        border-width: 3px;
        outline-offset: -5px;
    }
    .dp-cert-company {
        font-size: 1.1rem;
    }
    .dp-cert-title-badge {
        font-size: 0.71875rem;
        padding: 4px 12px;
    }
    .dp-cert-table th {
        width: 42%;
        font-size: 0.71875rem;
        padding: 0.5rem 0.6rem;
    }
    .dp-cert-table td {
        font-size: 0.78rem;
        padding: 0.5rem 0.6rem;
    }
    .dp-cert-highlight-id {
        font-size: 0.95rem;
    }
    .dp-cert-endorsement {
        flex-direction: row;
        align-items: center;
        gap: 0.5rem;
    }
    .dp-cert-seal {
        width: 76px;
        height: 76px;
    }
    .dp-seal-company {
        font-size: 0.5rem;
    }
    .dp-cert-sign-script {
        font-size: 1.25rem;
    }
    .dp-cert-sign-line {
        width: 120px;
    }
    .dp-share-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }
    .dp-share-btn {
        padding: 0.75rem 0.5rem;
        font-size: 0.8125rem;
    }
}

/* ==========================================================================
   CLEAN A4 PRINT CERTIFICATE
   ========================================================================== */
@media print {
    body * {
        visibility: hidden !important;
    }
    #printableSlip, #printableSlip * {
        visibility: visible !important;
    }
    .dp-modal-overlay {
        position: absolute !important;
        left: 0 !important;
        top: 0 !important;
        width: 100% !important;
        height: auto !important;
        background: transparent !important;
        padding: 0 !important;
        display: block !important;
        opacity: 1 !important;
    }
    .dp-modal-dialog {
        background: transparent !important;
        box-shadow: none !important;
        border: none !important;
        max-width: 100% !important;
        border-radius: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: visible !important;
    }
    .dp-certificate-sheet {
        border: 4px double #1e3a8a !important;
        outline: 2px solid #d4af37 !important;
        outline-offset: -8px !important;
        box-shadow: none !important;
        padding: 2.5rem 2rem !important;
        background: #ffffff !important;
        page-break-inside: avoid;
    }
    .dp-modal-close,
    .dp-btn-copy-mini,
    .dp-actions-wrap,
    .dp-modal-controls,
    .dp-toast {
        display: none !important;
    }
}
