/* ─── Minimal page-specific styles (reuses login.css variables) ─── */

/* Full-screen centred layout */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #F9FAFB;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    margin: 0;
    padding: 1.5rem;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

/* Card container */
.cp-card {
    background: #ffffff;
    border-radius: 0.75rem;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
    padding: 2.5rem 2rem;
    width: 100%;
    max-width: 420px;
}

/* Back link */
.cp-back {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    color: #6B7280;
    text-decoration: none;
    margin-bottom: 1.75rem;
    transition: color 0.15s ease;
}
.cp-back:hover { color: #111827; }

/* Brand row */
.cp-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.75rem;
}
.cp-brand-name {
    font-size: 1.125rem;
    font-weight: 700;
    color: #111827;
}

/* Heading */
.cp-heading h1 {
    font-size: 1.625rem;
    font-weight: 700;
    color: #111827;
    margin: 0 0 0.35rem;
    line-height: 1.2;
}
.cp-heading p {
    font-size: 0.875rem;
    color: #6B7280;
    margin: 0 0 1.75rem;
}

/* Input groups */
.cp-group {
    margin-bottom: 1rem;
}
.cp-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 0.4rem;
}
.cp-group .pw-wrap {
    position: relative;
}
.cp-group input[type="text"],
.cp-group input[type="password"] {
    width: 100%;
    padding: 0.625rem 2.4rem 0.625rem 0.875rem;
    font-size: 0.9375rem;
    font-family: inherit;
    color: #111827;
    background: #fff;
    border: 1px solid #E5E7EB;
    border-radius: 0.5rem;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.cp-group input:focus {
    border-color: #4F46E5;
    box-shadow: 0 0 0 3px rgba(79,70,229,0.1);
}
.cp-toggle {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.2rem;
    color: #9CA3AF;
    display: flex;
    align-items: center;
    transition: color 0.15s ease;
}
.cp-toggle:hover { color: #6B7280; }

/* Password strength bar */
.strength-bar {
    height: 4px;
    border-radius: 2px;
    background: #E5E7EB;
    margin-top: 0.4rem;
    overflow: hidden;
}
.strength-fill {
    height: 100%;
    width: 0%;
    border-radius: 2px;
    transition: width 0.3s ease, background 0.3s ease;
}
.strength-label {
    font-size: 0.75rem;
    margin-top: 0.2rem;
    color: #9CA3AF;
}

/* Feedback box */
.cp-feedback {
    display: none;
    padding: 0.65rem 0.875rem;
    border-radius: 0.5rem;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 1rem;
    line-height: 1.4;
}
.cp-feedback.err  { background:#FEF2F2; color:#DC2626; border:1px solid #FECACA; }
.cp-feedback.ok   { background:#F0FDF4; color:#16A34A; border:1px solid #BBF7D0; }
.cp-feedback.info { background:#EFF6FF; color:#2563EB; border:1px solid #BFDBFE; }

/* Submit button */
.cp-btn {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 0.9375rem;
    font-weight: 600;
    font-family: inherit;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.1s ease, box-shadow 0.15s ease;
    margin-top: 0.5rem;
}
.cp-btn.active {
    background: #4F46E5;
    color: #fff;
}
.cp-btn.active:hover {
    background: #4338CA;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
}
.cp-btn.inactive {
    background: #F3F4F6;
    color: #9CA3AF;
    cursor: not-allowed;
}

/* Spinner keyframes */
@keyframes spin { to { transform: rotate(360deg); } }

/* Footer */
.cp-footer {
    margin-top: 2rem;
    padding-top: 1.25rem;
    border-top: 1px solid #E5E7EB;
    text-align: center;
    font-size: 0.8rem;
    color: #9CA3AF;
}
/* ── Overlay ─────────────────────────────────────────── */
.cp-loader {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    align-items: center;
    justify-content: center;
}
.cp-loader.is-visible { display: flex; }

/* Blurred backdrop */
.cp-loader-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(249, 250, 251, 0.82);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

/* Floating card */
.cp-loader-card {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    background: #ffffff;
    border: 1px solid #E5E7EB;
    border-radius: 1.25rem;
    padding: 2.25rem 2.5rem 2rem;
    box-shadow: 0 20px 60px rgba(79,70,229,0.12), 0 4px 16px rgba(0,0,0,0.06);
    animation: cpCardIn 0.3s cubic-bezier(0.34,1.56,0.64,1) both;
}
@keyframes cpCardIn {
    from { opacity:0; transform:scale(0.88) translateY(12px); }
    to   { opacity:1; transform:scale(1)    translateY(0);    }
}

/* Logo + rings */
.cp-loader-logo-wrap {
    position: relative;
    width: 72px; height: 72px;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 0.25rem;
}
.cp-loader-ring {
    position: absolute;
    border-radius: 50%;
    border: 2px solid #4F46E5;
    opacity: 0;
    animation: cpRingPulse 2.4s ease-out infinite;
}
.cp-loader-ring--outer { width:72px; height:72px; animation-delay:0s;   }
.cp-loader-ring--inner { width:56px; height:56px; animation-delay:0.6s; }
@keyframes cpRingPulse {
    0%   { transform:scale(0.7); opacity:0.7; }
    70%  { transform:scale(1.4); opacity:0;   }
    100% { transform:scale(1.4); opacity:0;   }
}
.cp-loader-logo-icon {
    position: relative; z-index:1; line-height:0;
    animation: cpIconPulse 1.6s ease-in-out infinite;
}
@keyframes cpIconPulse {
    0%,100% { transform:scale(1);    }
    50%     { transform:scale(1.07); }
}

/* Text */
.cp-loader-brand {
    font-family:'Inter',sans-serif; font-size:1.0625rem;
    font-weight:700; color:#111827; margin:0; letter-spacing:-0.01em;
}
.cp-loader-status {
    font-family:'Inter',sans-serif; font-size:0.8125rem;
    color:#6B7280; margin:0; min-height:1.2em; transition:opacity 0.2s ease;
}

/* Bouncing dots */
.cp-loader-dots { display:flex; gap:6px; margin-top:0.25rem; }
.cp-loader-dot {
    width:7px; height:7px; border-radius:50%; background:#4F46E5;
    animation: cpDotBounce 1.1s ease-in-out infinite both;
}
.cp-loader-dot:nth-child(1){ animation-delay:0s;    }
.cp-loader-dot:nth-child(2){ animation-delay:0.18s; }
.cp-loader-dot:nth-child(3){ animation-delay:0.36s; }
@keyframes cpDotBounce {
    0%,80%,100%{ transform:scale(0.6); opacity:0.4; }
    40%        { transform:scale(1.0); opacity:1;   }
}

/* Success state — everything turns green */
.cp-loader.is-success .cp-loader-dot  { background:#16A34A; animation:none; transform:scale(1); opacity:1; }
.cp-loader.is-success .cp-loader-ring { border-color:#16A34A; }