/* A+ account password setup — profile + /user */
.aps-root {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.aps-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.aps-badge.protected {
    color: #00ff88;
    border: 1px solid rgba(0, 255, 136, 0.45);
    background: rgba(0, 255, 136, 0.1);
}

.aps-badge.locked {
    color: #fbbf24;
    border: 1px solid rgba(251, 191, 36, 0.45);
    background: rgba(251, 191, 36, 0.1);
}

.aps-badge.ready {
    color: #00d4ff;
    border: 1px solid rgba(0, 212, 255, 0.45);
    background: rgba(0, 212, 255, 0.1);
}

.aps-status {
    font-size: 0.9rem;
    line-height: 1.45;
    opacity: 0.92;
}

.aps-progress {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.aps-progress-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    opacity: 0.85;
}

.aps-progress-bar {
    height: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.aps-progress-fill {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #00d4ff, #00ff88);
    transition: width 0.25s ease;
}

.aps-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-top: 4px;
}

.aps-step {
    padding: 8px 10px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.2);
    font-size: 0.76rem;
    opacity: 0.7;
}

.aps-step.active {
    border-color: rgba(0, 212, 255, 0.45);
    opacity: 1;
}

.aps-step.done {
    border-color: rgba(0, 255, 136, 0.4);
    opacity: 1;
}

.aps-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.aps-field label {
    display: block;
    font-size: 0.8rem;
    margin-bottom: 4px;
    opacity: 0.85;
}

.aps-field input {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: #161b22;
    color: #fff;
    font-size: 0.92rem;
}

.aps-field input:focus {
    outline: none;
    border-color: rgba(0, 212, 255, 0.55);
    box-shadow: 0 0 0 2px rgba(0, 212, 255, 0.15);
}

.aps-strength {
    height: 4px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
    margin-top: 4px;
}

.aps-strength-fill {
    height: 100%;
    width: 0;
    border-radius: 999px;
    transition: width 0.2s ease, background 0.2s ease;
}

.aps-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.aps-btn {
    padding: 9px 14px;
    border-radius: 8px;
    border: 1px solid transparent;
    cursor: pointer;
    font-size: 0.88rem;
    font-weight: 600;
}

.aps-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.aps-btn.primary {
    border-color: #00ff88;
    background: rgba(0, 255, 136, 0.15);
    color: #00ff88;
}

.aps-btn.secondary {
    border-color: #00d4ff;
    background: rgba(0, 212, 255, 0.12);
    color: #00d4ff;
}

.aps-btn.ghost {
    border-color: rgba(255, 255, 255, 0.2);
    background: transparent;
    color: rgba(255, 255, 255, 0.85);
}

.aps-message {
    font-size: 0.84rem;
    min-height: 1.2em;
}

.aps-message.error { color: #ff8888; }
.aps-message.success { color: #00ff88; }
.aps-message.info { color: #00d4ff; }

.aps-recovery {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 12px;
}

.aps-recovery summary {
    cursor: pointer;
    font-size: 0.84rem;
    color: #fbbf24;
    user-select: none;
}

.aps-recovery-body {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.aps-policy {
    font-size: 0.78rem;
    opacity: 0.72;
    line-height: 1.4;
}

.aps-cta-link {
    color: #00d4ff;
    text-decoration: none;
    font-weight: 600;
}

.aps-cta-link:hover {
    text-decoration: underline;
}

@media (max-width: 640px) {
    .aps-steps {
        grid-template-columns: 1fr;
    }
}
